Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main(){
- int x,y,b,c;
- for(x=1;x<=9;x++)
- { for(y=1;y<=9;y++)
- {b=x*10+y;
- int c=(x+y)*(x+y);
- if(c==b)
- cout<<"Nr care satisfac relatia sunt: "<<c<<endl; } }
- cout<<"Nr care satisfac relatia sunt: "<<c<<endl;
- system("pause");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement