SHARE
TWEET

Untitled

boykopk Dec 8th, 2017 78 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System;
  2.  
  3. namespace vvv
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             int a = int.Parse(Console.ReadLine());
  10.             int b = int.Parse(Console.ReadLine());
  11.             int h = int.Parse(Console.ReadLine());
  12.  
  13.             int p = 0;
  14.  
  15.             for (int d1 = 1; d1 <= a; d1++)
  16.             {
  17.                 for (int d2 = 1; d2 <= b; d2++)
  18.                 {
  19.                     if (p < h)
  20.                     {
  21.                         Console.Write($"({d1} <-> {d2}) ");
  22.                     }
  23.                     p++;
  24.                 }
  25.             }
  26.         }
  27.     }
  28. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top