Advertisement
Josif_tepe

Untitled

May 28th, 2021
146
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. using namespace std;
  3.  
  4. int main()
  5. {
  6.     int n;
  7.     cin >> n;
  8.     for (int i = 0; i < 20; i++)
  9.     {
  10.         for (int j = 0; j < 20; j++)
  11.         {
  12.             if (i * 7 + j * 4 == n)
  13.             {
  14.                 cout << "DA" << endl;
  15.                 return 0;
  16.             }
  17.         }
  18.     }
  19.     cout << "NE" << endl;
  20.     return 0;
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement