for循环的.c
来自「数据结构c语言源代码」· C语言 代码 · 共 13 行
C
13 行
#include <stdio.h>
main()
{
int i,j,k,count=1;
printf("There are following small exchange plans for i Yuan note :\n");
for(i=0;i<=100;i++)
for(j=0;j<=100-i;j+=2)
for(k=0;k<=100-i-2*j;k+=5)
if(i+j+k==100)
printf(count%4? "%d: 1*%d+2*%d+5*%d ":"%d:1*%d+2*%d+5*%d\n",count++,i,j/2,k/5);
getch();
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?