#include main() { int s=0,k; for(k=7;k>=0;k--) { switch(k) {
来源:学生作业帮 编辑:神马作文网作业帮 分类:综合作业 时间:2024/11/10 08:52:08
#include main() { int s=0,k; for(k=7;k>=0;k--) { switch(k) { case 1: case 4: case 7: s++; b
#include
main()
{ int s=0,k;
for(k=7;k>=0;k--)
{ switch(k)
{ case 1:
case 4:
case 7: s++; break;
case 2;
case 3;
case 6; break;
case 0:
case 5: s+=2; break;
}
}
printf("s=%d\n",s);
#include
main()
{ int s=0,k;
for(k=7;k>=0;k--)
{ switch(k)
{ case 1:
case 4:
case 7: s++; break;
case 2;
case 3;
case 6; break;
case 0:
case 5: s+=2; break;
}
}
printf("s=%d\n",s);
是这样?
#include
main()
{ int s=0,k;
for(k=7;k>=0;k--)
{ switch(k)
{ case 1:
case 4:
case 7: s++; break;
case 2:
case 3:
case 6: break;
case 0:
case 5: s+=2; break;
}
}printf("s=%d\n",s);
}
#include
main()
{ int s=0,k;
for(k=7;k>=0;k--)
{ switch(k)
{ case 1:
case 4:
case 7: s++; break;
case 2:
case 3:
case 6: break;
case 0:
case 5: s+=2; break;
}
}printf("s=%d\n",s);
}
#include main() { int s=0,k; for(k=7;k>=0;k--) { switch(k) {
#include void main() { int k=5,n=0; while(k>0) {switch(k) {d
#include main( ) { int k,sum=0 int count=0 for(k=1;k
#include main() { int c=0,k; for (k=1;k
#include main() { int k,j,m; for(k=5;k>=1;k--) { m=0; for(j=
#include main() { int i,k; for(i=0,k=-1;k=1;k++) printf("***
main() { int k=5,n=0; while(k>0) { switch(k) { default :brea
int k,s; for(k=s=0;k
#include ; main( ) {int i,j,k,s; i=0,j=10,k=2,s=0; for(; ;)
main() {int k=0; while(printf("*")) {k++; if(k
C语言中 i+=k #include main(){int i=0,j=10,k=2,s=0;for( ;;){i+=k
#include void main( ) { int k=-3; if (k