Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <math.h>
- using namespace std;
- int main(){
- long a,b,c;
- float mg;
- cin>>a>>b;
- c=b;
- while (a!=0&&b!=0&&c!=0)
- {
- cin>>c;
- mg=sqrt(a*b);
- if (mg==c)
- cout<<a<<" "<<b<<" "<<c;
- a=b;
- b=c;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement