View Code of Problem 90

#include <stdio.h>
#include <stdlib.h>

int main()
{
    int a,b;
    scanf("%d,%d",&a,&b);
    for(int i = a;i< 90;i++){
        for(int j = i;j < 90;j++){
            for(int k = 90;k > j;k--){
                if(i*i+j*j == k*k){
                    printf("%d^2+%d^2=%d^2\n",i,j,k);
                }
            }
        }
    }
    return 0;
}

Double click to view unformatted code.


Back to problem 90