tim x^2+y^2=z^2

Màu nền
Font chữ
Font size
Chiều cao dòng

/*tim x,y,z*/

#include<stdio.h>

#include<conio.h>

#include<math.h>

int main()

{

int x,y,z;

printf("cac gia tri thoa man la:");

for(x=0;x<100;x++)

{for(y=0;y<100;y++)

{for(z=0;z<100;z++)

{

if((pow(x,2)+pow(y,2))==pow(z,2))

printf("

x=%d,y=%d,z=%d",x,y,z);

}

}

}

getch();

return 0;

}

Bạn đang đọc truyện trên: Truyen2U.Pro