#include "stdafx.h"
#include <iostream>
using namespace std;
void findout() {
int a,b,c;
for(a=5;a<1000;a++) {
for(b=4;b<a;b++) {
for(c=3;c<b;c++) {
if((a+b+c) == 1000 && ((c*c) + (b*b)) == (a*a)) {
cout << "Sonuc :" << a * b * c << endl << "Sayilar : " << a << "," << b << "," << c << endl;
cout << "efekanpulatli.blogspot.com" << endl;
}
}
}
}
}
int main()
{
findout();
system("pause");
return 0;
}

Hiç yorum yok:
Yorum Gönder