C语言上机150道题

#include main() { int x;

printf(\

if((x%3==0)&&(x%5==0)&&(x%7==0)) printf(\能被3,5,7整除\,x); else

printf(\不能被3,5,7整除\,x); getch(); } 34

#include #include main() {

int month,i;

loop:printf(\ scanf(\ if(month<1||>12)

goto loop; r=month; r=r/3; if(r==0)

printf(\ else if(r==1) printf(\ else if(r==2) printf(\ else

printf(\ getch(); } 35

#include #include main() {

int a,b,c;

printf(\ scanf(\

switch(a) {

case 1:printf(\ break;

case 2:printf(\ break;

case 3:printf(\ break;

case 4:printf(\ break; default :break; }

getch(); } 36

#include #include main() {

int a;

printf(\请输入整数A:\\n\

scanf(\ if(a<10)

printf(\整数%d小于10。\ else if((a>=10)&&(a<99))

printf(\整数%d大于等于10且小于100。\ else if((a>=100)&&(a<999))

printf(\整数%d大于等于100且小于1000。\ else

printf(\整数%d大于等于1000。\ getch(); } 37

#include #include main() {

int a;

printf(\请输入整数a:\\n\ scanf(\ switch(a) {

case 65:printf(\

联系客服:779662525#qq.com(#替换为@)