SOURCE CODE OUTPUT
#include<iostream>
using namespace std;
int main()
{
int y,fsh,sdh;
for(int i=1000;i<10000;i++)
{
fsh=i%100;
sdh=i/100;
if(fsh*fsh==sdh*sdh)
cout<<i<<" ";
}
}
using namespace std;
int main()
{
int y,fsh,sdh;
for(int i=1000;i<10000;i++)
{
fsh=i%100;
sdh=i/100;
if(fsh*fsh==sdh*sdh)
cout<<i<<" ";
}
}
Any questions regarding to program please write in comments.
No comments:
Post a Comment