Advertisement
desislava_topuzakova

02.Наредени двойки

Jun 7th, 2020
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4.  
  5. namespace AlgorithmsOverStructureData
  6. {
  7. class Program
  8. {
  9. static void Main(string[] args)
  10. {
  11. int m = int.Parse(Console.ReadLine()); //3
  12. int n = int.Parse(Console.ReadLine());//2
  13.  
  14. for (int p = 1; p <= m; p++)
  15. {
  16. for (int q = 1; q <= n; q++)
  17. {
  18. Console.WriteLine($"{p}, {q}");
  19. }
  20. }
  21. //1 1, 1 2, 2 1, 2 2, 3 1, 3 2
  22.  
  23. }
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement