Advertisement
krasio12356

Bitcoin

Apr 17th, 2018
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.46 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3. using namespace std;
  4.  
  5.                                // Bitcoin
  6. int main()
  7. {
  8.     int a, b, total;
  9.     cin >> a >> b >> total;
  10.     int m = 33;
  11.     int n = 58;
  12.     for (int i = 1; i <= a; i++)
  13.     {
  14.         for (int j = 1; j <= b; j++)
  15.         {
  16.             cout << (char)m << (char)n << i << j << (char)n << (char)m << "|";
  17.             m++;
  18.             if (m > 47) m = 33;
  19.             n++;
  20.             if (n > 64) n = 58;
  21.             total--;
  22.             if (total == 0) return 0;
  23.         }
  24.     }
  25.     return 0;
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement