
如运行时输入This is example.<CR>,则程序的输出结果是( )。
A.This
B.This is
C.This iS a
D.This is an example.
[单选题]当运行以下程序时,从键盘输入AhaMA(空格)Aha<CR>,则下面程序的运行结果是#include<stdio.h>main(){ char s[80],c=′a′;int i=0;scanf("%s",s);while(s[i]!=′{ if(s[i]==c)s[i]-32;else if(s[i]==c-32)s[i]=s[i]+32;i++; }puts(s); }A.ahaMaB.AbAMaC.AhAMa[空格]ahAD.ahAMa[空格]ahA
[单选题]若运行以下程序时,从键盘输入 ADescriptor<CR>(<CR>表示回车),则下面程序的运行结果是#include <stdio.h>main(){char c;int v0=1,v1=0,v2=0;do{ switch(c=getchar()){ case ′a′:case ′A′:case ′e′:case ′E′:case ′i′:case ′I′:case ′o′:case ′O′:case ′u′:case ′U′:v1+=1;default:
[单选题]若运行以下程序时,从键盘输入 ADescriptor<CR>(<CR>表示回车),则下面程序的运行结果是#include <stdio.h>main(){char c;int v0=1,v1=0,v2=0;do{switch(c=getchar()){case ′a′:case ′A′:case ′e′:case ′E′:case ′i′:case ′I′:case ′o′:case ′O′:case ′u′:case ′U′:v1+=1;default:v0
[试题]执行以下程序时输入1234567<CR>,则输出结果是_[6]_______#include <stdio.h>main(){ int a=1,b;scanf("%2d%2d",&a&b);printf("%d %d/n",a,b);
[试题]执行以下程序时输入 1234567<CR>, 则输出结果是 _[6]_______ .#include <stdio.h>main(){ int a=1,b;scanf("%2d%2d",&a,&b);printf("%d %d/n",a,b);}
[主观题]有以下程序若在程序运行时输入整数10<回车>,则输出结果为()。
[单选题]有以下程序程序运行时键盘输入9<回车>,则输出的结构是()A.10B.11C.9D.8
[单选题]有以下程序:若运行时输入:2 4 6<;回车>;,则输出结果为( )。A.2 0 4B.2 0 0C.2 4 0D.2 4 6
[试题]有以下程序,若运行时从键盘输入: 18,11< 回车 > ,则程序的输出结果是 ( 9 ) 。main(){ int a,b;printf("Enter a,b:"); scanf("%d,%d",&a,&b);while(a!=b){ while(a>b) a -= b;while(b>a) b -= a;}printf("%3d%3d/n",a,b);}
[单选题]下面程序运行时,若输入395,则输出结果是( )。A. 5 9 3B. 3 5 9C. 5 3 9D. 3 9 5