#include<stdio.h>
int main()
{
int i,j;
int count=0;
for(i=0;i<=10;i++)
for(j=0;j<=20;j++)
if(100-i*10-j*2>=0)
{
printf("1元%3d张 10元%3d张 5元%3d张",100-i*10-j*20,i,j);
count++;
if(count%2==0)
printf("\n");
}printf("\n%d\n",count);
return 0;
}
知识点 学会使用for语句
心得体会 注意for语句的格式和“;”号前代表什么