摘要: 如果我们想要让程序在中途跳出循环,可以用break语句来实现 #include<stdio.h> int main(){int i,num;_Bool flag=1;printf("请输入一个整数:");scanf("%d",&num);for (i=2;i<=num/2;i++){if(num%i 阅读全文
posted @ 2021-08-16 19:38 好想成为一只鸟 阅读(109) 评论(0) 推荐(0)
摘要: count++(count=count+1) #include<stdio.h> int main(){ int count; for (count=0;count<10;count++) { printf("银行姐姐\n"); } return 0;} 结果 银行姐姐银行姐姐银行姐姐银行姐姐银行姐 阅读全文
posted @ 2021-08-16 14:24 好想成为一只鸟 阅读(72) 评论(0) 推荐(0)