Uva 8道比较水的数论 (练练英语阅读理解)
Light, more light
#include <iostream> #include <cmath> using namespace std; int main(){ double c; double n; int n1; while(cin>>c&&c){ n=sqrt(c); n1=n; if(n-n1>0) cout<<"no"<<endl; else cout<<"yes"<<endl; } return 0; }
#include <iostream> #include <cmath> using namespace std; int main(){ double c; double n; int n1; while(cin>>c&&c){ n=sqrt(c); n1=n; if(n-n1>0) cout<<"no"<<endl; else cout<<"yes"<<endl; } return 0; }