1. for(i=1;i<=100;i++){if(i%6) == 0) printf("被6整除") ;}
2.scanf("%d,",&i);if(i%2){printf("奇");}else{printf("偶");}
3.scanf("%s",&a[0]);for(i=0;i
6.int s=1;for(i=1;i<=10;i++)(s=s*i);
7.unsigned int s=0;for(i=1;i<=n;i++)(if(i%2){s=s+i}else(s=s-i))
中间两个的数学公式不记得了,你自己看下吧