题目内容
分析下程序,并写出程序的运行结果。#include main(){ int s;scanf("%d",&s);while(s>0){ switch(s){ case 1: printf("%d",s+5);case 2: printf("%d",s+4); break;case 3: printf("%d",s+3);default: printf("%d",s+1);break;}scanf("%d",&s);}}运行时,若输入:1<回车> 2<回车> 3 <回车>4 <回车>5 <回车>0<回车>,则输出结果是( )。
查看答案
搜索结果不匹配?点我反馈
更多问题