You are on page 1of 1

Holidays homework for class 11 Q.

1 Write a function which takes 2 arguments a integer matrix and int size to print upper triangle of the matrix. i/p o/p 2 3 1 5 0 2 3 1 5 0 7 1 5 3 1 1 5 3 1 2 5 7 8 1 7 8 1 0 1 5 0 1 0 1 3 4 9 1 5 5 Q2. Write a function that takes 2 arguments a integer matrix and integer size and return an integer value which is the sum of both the diagonals. Q.3 Write a function takes 2 arguments a integer matrix and integer size and print upper triangle of the matrix: i/p o/p 2 3 1 5 0 2 3 1 5 0 7 1 5 3 1 7 1 5 3 2 5 7 8 1 2 5 7 0 1 5 0 1 0 1 3 4 9 1 5 3 Q4. Write a function that takes 3 arguments a integer matrix and integer row and integer column and Accept a row no and display total of that row. Q5. Write a function that takes 2 arguments a integer matrix and integer size and print upper triangle of the matrix: i/p o/p 2 3 1 5 0 2 7 1 5 3 1 7 1 2 5 7 8 1 5 7 8 0 1 5 0 1 0 1 5 0 3 4 9 1 5 3 4 9 1 5 Q5. Write a function that takes 3 arguments a integer matrix and integer row and integer column and Accept column no and display total of that column Q6 Write a function that takes 2 arguments a integer matrix and integer size and print upper triangle of the matrix: i/p o/p 2 3 1 5 0 0 7 1 5 3 1 3 1 2 5 7 8 1 7 8 1 0 1 5 0 1 1 5 0 1 3 4 9 1 5 3 4 9 1 5 Q7. Write a function that takes 2 arguments a integer matrix and integer size and display Diagonal elements Q8. Write a function that takes 2 arguments a integer matrix and integer size and display Row total of each row. Q9. Write a function that takes 2 arguments a integer matrix and integer size and display Column total of each column. Q10 Write a function that takes 3 arguments 2 integer matrix and integer size of both and display their sum and difference.

You might also like