View Code of Problem 90

#include<stdio.h>
int main()
{
    int a,b,x,y,z;
    scanf("%d,%d",&a,&b);
    for(x=a;x<b;x++)
    {
        for(y=a;y<b;y++)
        {
		
           for(z=a;z<=b;z++)
           {
           	if(z*z==x*x+y*y&&x<y&&x<z&&y<z)
           	printf("%d^2+%d^2=%d^2\n",x,y,z);
		   }
	    }
	}
	return 0;
}

Double click to view unformatted code.


Back to problem 90