Advertisement
Josif_tepe

Untitled

May 28th, 2021
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.36 KB | None | 0 0
  1. #include <iostream>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7.     int n;
  8.     cin >> n;
  9.     for (int i = 0; i < 20; i++)
  10.     {
  11.         for (int j = 0; j < 20; j++)
  12.         {
  13.             if (i * 7 + j * 4 == n)
  14.             {
  15.                 cout << "DA" << endl;
  16.                 return 0;
  17.             }
  18.         }
  19.     }
  20.     cout << "NE" << endl;
  21.     return 0;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement