Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace _09.MatrixOfNumbers
- {
- class MatrixOfNumbers
- {
- static void Main()
- {
- Console.Write("Γnter n = ");
- int n = int.Parse(Console.ReadLine());
- for (int row = 1; row <= n; row++)
- {
- for (int col = 1; col <= n; col++)
- {
- Console.Write("{0,3}", row + col - 1);
- }
- Console.WriteLine();
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement