#include<stdio.h>
int main()
{
int times;
times=0;
while(times<10){
printf("奥里给!\n");
printf("执行时times的值是%d\n",times);//printf()不能在times=times+1;后面,不然会出现10
times=times+1; //time++;
}
程序循环10次-while
最新推荐文章于 2024-04-29 16:55:09 发布