Professional Documents
Culture Documents
Lab 06 Taska 03042022 092850pm 29092022 110607am
Lab 06 Taska 03042022 092850pm 29092022 110607am
Tasks: 01
Write a program to create a 2D array of size 3x3. The program takes input for each cell in the array and
then calculates and displays the sum of each row.
For example:
123
456
789
Tasks: 02
Write a program that takes a 3x3 matrix as input and asks for a number entered and prints out its
position in the matrix. It displays not found if the number is not in the matrix.
For example:
123
456
789
Input Example 1:
Not Found
Tasks: 03
Write a program which calculates the transpose of a 3x3 matrix.
Example:
123
456
789
Transpose:
147
258
369