2D ARRAY
- Write a code to search for a value in the matrix and change it with user given value. Your code should give the position of that number too. User will give 2 inputs: 1.) What value to change/search and 2.) What is the new value.
- WAP to transpose a square matrix.
- WAP to print all the prime numbers from a 2D array and find out their sum.
- WAP to display those elements of a two dimensional array which are divisible by 10. Also find their sum.
- WAP to find out the sum of negative, positive, odd and even integers separately from a two dimensional array.
- WAP to find out the product of two matrices.
- WAP to find out the sum and difference of two matrices.
- WAP to display the upper and lower triangle of a matrix.
- WAP to find out the sum of non diagonal elements.
- WAP to print the left and right diagonal of a square matrix and find out their sum separately.
- WAP to double all the elements of a matrix.
- WAP to find out the row sum and column sum of a two dimensional array of integers.
- WAP to display the values of a two dimensional array in the matrix form.
No comments:
Post a Comment