Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- namespace AlgorithmsOverStructureData
- {
- class Program
- {
- static void Main(string[] args)
- {
- int m = int.Parse(Console.ReadLine()); //3
- int n = int.Parse(Console.ReadLine());//2
- for (int p = 1; p <= m; p++)
- {
- for (int q = 1; q <= n; q++)
- {
- Console.WriteLine($"{p}, {q}");
- }
- }
- //1 1, 1 2, 2 1, 2 2, 3 1, 3 2
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement