View Code of Problem 90

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

Double click to view unformatted code.


Back to problem 90