Advertisement
Ridwanul_Haque

Arean Code

May 15th, 2020
1,366
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.28 KB | None | 0 0
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. typedef unsigned int ui;
  4.  
  5. int main()
  6. {
  7.     ui b;
  8.     while(1)
  9.     {
  10.         cin>>b;
  11.         if(b==0) break;
  12.         ui count = sqrt(b);
  13.         ui vog = b-count*count;
  14.         vog==0 ? cout<<"yes\n" : cout<<"no\n";
  15.     }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement