标签:ima while 技术 操作 puts include back color clu
1、
#include <stdio.h>
int main(void)
{
int i;
puts("please input an integer.");
printf("i = "); scanf("%d", &i);
while (i > 0)
{
putchar(‘*‘);
i = i - 1;
}
putchar(‘\n‘);
printf("%d", i);
return 0;
}
## i 结束为 0.
2、
#include <stdio.h>
int main(void)
{
int i;
puts("please input an integer.");
printf("i = "); scanf("%d", &i);
while ( i-- > 0)
{
putchar(‘*‘);
}
putchar(‘\n‘);
printf("%d", i);
return 0;
}
## i 结束为 -1.
标签:ima while 技术 操作 puts include back color clu
原文地址:https://www.cnblogs.com/liujiaxin2018/p/14237620.html