Advertisement
rengetsu

ProcedurProgramavimas_1.17

Feb 22nd, 2018
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.35 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. int main()
  4. {
  5.     long double zz;
  6.     long double a, m, q;
  7.     long double dd=1;
  8.     long int e;
  9.     cin>>zz;
  10.     q=0;
  11.     for (int i = 0; i < zz; i++)
  12.     {
  13.      m=zz/dd;
  14.      dd++;
  15.      e=m;
  16.      a=m-e;
  17.       if (0==a){q++;}
  18.     }
  19.      if(q==2)
  20.      {cout<<"TAIP";}else{cout<<"NE";}
  21.     return 0;
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement