Vla_DOS

3

Jan 13th, 2023
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.29 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4.  
  5. int main()
  6. {
  7.     for (int i = 1; i < 10; i++)
  8.     {
  9.         for (int j = 0; j < 10; j++)
  10.         {
  11.             if ((i * i + j * j) % 17 == 0)
  12.             {
  13.                 cout << " " << i << j << endl;
  14.             }
  15.         }
  16.     }
  17.  
  18. }
Advertisement
Add Comment
Please, Sign In to add comment