Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace vvv
- {
- class Program
- {
- static void Main(string[] args)
- {
- int a = int.Parse(Console.ReadLine());
- int b = int.Parse(Console.ReadLine());
- int h = int.Parse(Console.ReadLine());
- int p = 0;
- for (int d1 = 1; d1 <= a; d1++)
- {
- for (int d2 = 1; d2 <= b; d2++)
- {
- if (p < h)
- {
- Console.Write($"({d1} <-> {d2}) ");
- }
- p++;
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment