Loading...
Write a program to input and store integer elements in a double dimensional array of size 3 x 3 and find the sum of elements in the left diagonal. Example: 1 3 5 4 6 8 9 2 4 Output: Sum of the left diagonal elements = (1 + 6 +4) = 11
Define a class to accept values into a 4 x 4 integer array. Calculate and print the NORM of the array. NORM is the square root of sum of squares of all elements. 1 2 1 3 5 2 1 6 3 6 1 2 3 4 6 3 Sum of squares of elements = 1+4+1+9+25+4+1+36+9+36+1+4+9+16+36+9 = 201 NORM = Squareroot of 201 = 14.177446878757825
© 2026 PadhAiPro. This question is provided for educational purposes.