Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace _7_MatrixOfPalindromes
- {
- class MatrixOfPalindromes
- {
- static void Main(string[] args)
- {
- int height = int.Parse(Console.ReadLine());
- int width = int.Parse(Console.ReadLine());
- for (int row = 0; row < height; row++)
- {
- for (int col = 0; col < width; col++)
- {
- Console.Write(""+(char)('a' + row) + (char)('a' + col + row) + (char)('a' + row) +" ");
- }
- Console.WriteLine();
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement