View Code of Problem 90

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

return 0;
}

Double click to view unformatted code.


Back to problem 90