Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- long double zz;
- long double a, m, q;
- long double dd=1;
- long int e;
- cin>>zz;
- q=0;
- for (int i = 0; i < zz; i++)
- {
- m=zz/dd;
- dd++;
- e=m;
- a=m-e;
- if (0==a){q++;}
- }
- if(q==2)
- {cout<<"TAIP";}else{cout<<"NE";}
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement