tim so tien 5k,10k,20k....
/*tim so to tien (doc lai)*/
#include<stdio.h>
#include<conio.h>
#include<math.h>
int main()
{
int i,j,k,l,m;
for(i=1;i<=10;i++)
for(j=1;j<=10;j++)
for(k=1;k<=10;k++)
for(l=1;l<=10;l++)
for(m=1;m<=10;m++)
if(i+2*j+5*k+10*l+20*m==300)
{
printf(" %d to 1000, %d to 2000, %d to 5000, %d to 10000, %d to 20000;",i,j,k,l,m);
printf("
");
}
getch();
return 0;
}
Bạn đang đọc truyện trên: Truyen247.Pro