View Code of Problem 90

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

Double click to view unformatted code.


Back to problem 90