摘要: #include<stdio.h> int main() { int j=0; while(j++<10); printf("%d",j); return 0; } 输出11 阅读全文
posted @ 2022-03-06 19:25 sssyh 阅读(19) 评论(0) 推荐(0)
摘要: 在for循环里使用continue,即忽略continue下面语句,直接接着循环 #include<stdio.h> int main() { int a,b; for(a=1,b=1;a<=100;a++) { if(b>20) break; if(b%4==1) { b=b+4; continu 阅读全文
posted @ 2022-03-06 19:02 sssyh 阅读(209) 评论(0) 推荐(0)
摘要: #include<stdio.h> int main() { char ch1='A'; char ch2='B'; switch(ch1) { case'A': switch(ch2) { case'B':printf("good\n");break; case'A':printf("better 阅读全文
posted @ 2022-03-06 15:46 sssyh 阅读(60) 评论(0) 推荐(0)