求解釋!?。。。。。。。。。?!最好詳細(xì)點(diǎn)
【單選題】
有以下程序:?
#include<stdio.h>?
int?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:("%d",s+1);break;?
???}?
???scanf("%d",&s);?
???}?
??return?0;
?}?
運(yùn)行時(shí),若輸入1?2?3?4?5?0<回車>,由輸出結(jié)果是(???)
正確答案: A?我的答案:B
2019-05-30
我會(huì)了 大家