question?
Part II: Output and Debugging Questions (10 marks each) Note: Provide a copy of the code and screen shot for the output in the solutions' 1. What is the output of the following program? Explain. using System; public class Program { public static void Main(string[] args) { M109 TMA Summer 2022 } } int i, j; int [] A = new int [5,5]; for (i = 0; i < 5; ++i) { } for (j { } for (i { } } = = A[i,j] = i*i; 0; j < 5; ++j) 0; i < 4; ++i) for (j = 0; j < 5; ++j) { if (i < 5) { A[j,i] = A[i, j]; } else break; Console.Write(A[i, j] + Console.WriteLine(); Console.ReadLine(); "); [20 Marks] [10 Marks]
How to solve this Part II: Output and Debugging Questions (10 marks each) Note: Provide a copy of the code and screen shot for the output
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am