Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- using namespace std;
- int main(){
- float nf;
- cin>>nf;// no modifique la instrucción de lectura
- while(nf != int(nf) or nf<0){
- cin>>nf;
- }
- cout<<nf*nf;
- return 0;// no utilize system(pause)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement