1)#include 2)usingnamespacestd; 3)intmain() 4){ 5)inta,b,result; 6)cout< 7)cin>>a>>b; 8)result=3*a-2*b+1; 9)cout< 10)} 程序执行到第8行时,假设此时输入“3,5”再单击回车键,则a的值是:()
相似题目
-
1)#include 2)usingnamespacestd; 3)intmain() 4){ 5)inta,b,result; 6)cout< 7)cin>>a>>b; 8)result=3*a-2*b+1; 9)cout< 10)} 程序第6行执行结束后,光标在什么位置:()
-
1)#include 2)usingnamespacestd; 3)intmain() 4){ 5)inta,b,result; 6)cout< 7)cin>>a>>b; 8)result=3*a-2*b+1; 9)cout< 10)} 执行完第6行后,屏幕上输出:()
-
1)#include 2)usingnamespacestd; 3)intmain() 4){ 5)inta,b,result; 6)cout< 7)cin>>a>>b; 8)result=3*a-2*b+1; 9)cout< 10)} 程序第2行会对哪条语句产生影响:()
-
以下程序的输出结果是 。 #include main() { int m[ ]={1,4,7}; int i; for(i=1;i<=2;i++) printf(%d,m[i]); }
-
下面程序段执行后输出的结果是()include<stdio.h>main(){int a[2][2]={{1,2),{5,7)),*P,i;p=&a[0][0];for(i=0;i<2;i++)"P++=i+1:printf("%d",*(p-2));}
-
有如下程序:include<iostream.h>long fib(int n){if(n>2)return(fib(n-1)+fib(n-2)); else retu
-
有以下程序 include<stdio.h> defineS(x)4*(x)*x+1 yoidmain() { intk=5,j=2: printf(
-
有以下程序: include<stdio.h> main() {int b[3][3]=(0,1,2,0,1,2,0,1,2},i,j,t=l;
-
有下列程序: include voidmain() {intx=1,y=2,z=3; if(x>y) if(y
-
【填空题】下面程序的功能是用公式π2/6≈1/12+1/22+1/32+...+1/n2求π的近似值,直到最后一项的值小于10-6为止,请分析程序填空。 include<math.h> include<stdio.h> main() {long i=1; 【1】pi=0; while(i*i>=1e6) {pi=【2】;i++;} pi=sqrt(6.0*pi); printf("pi=%10.6fn",pi); }
-
下列程序的输出结果是______。 include<stdio.h> main() { int a=2,b=-1,C=2;
-
要求下面的程序运行后,显示如下结果: 2 10 4 6 1 5 2 3 2 4 7 8 5 1 3 2 下列程序执行后的输出结果是________。 include void main(); }
-
Students will:1)discuss the topics they would include in the Pre-reading Activities;2
-
以下程序段的执行结果为()。include< iostream.h>definePLUS(x,y)x+yvoid main (){int x=1,y=2,
-
有以下程序: include<stdio.h> int f(int t[],int n); main() {int a[4]={1,2,3,4
-
以下程序的运行结果是()。include<stdio.h>main(){int a[]={1,2,3,4,5,6,7,8,9,10,11,12}; int *
-
◑有以下程序◑include◑include◑main( )◑{char x[]=“STRING”;◑x[0]=0;x[1]=’\0’;x[2]=’0’;◑printf(”%d%d\n”,sizeof(x),strlen(x));◑}◑程序运行后的输出结果是( )。◑6 1◑7 0◑6 3◑7 1
-
若有如下语句 include voidmain() { intx=3: do{ x=X-2: cout$amp;A.输出的是1
-
写出下面程序执行后的运行结果。 include <stdio.h> define N 2 define M N+1 define N
-
下面程序的运行结果是include<iostream.h>void main(){int i=1;while(i<=8)if (i%3!=2)cont
-
有以下程序:include<stdio.h>main(){int i=1,j=1,k=2; if((j++||k++)&&i++)printf("%d,
-
有以下程序:include<stdlib.h>void fun(int* s,int* * d){* *d=*(s+2);}main(){ inta[]={1,2,3,
-
当执行下面的程序时,如果输入ABC,则输出结罘是()。 include<stdio.h> include<string.h> main() { char ss[10]="1,2,3,4,5": gets(ss);strcat(ss,"6789");printf("%s\n",ss); }
-
有以下程序:include<stdio.h>main(){int s=0,a=1,n; scanf("%d",&n); do {s+=1;a=a-2;} whi
-
下列程序的运行结果为()。 include<iostream.h> void main { int a=2: int b=a+1: co
推荐题目
- 新建发行网点的原则之一是能否赢利,同时追求社会效益的最大化。
- 固定容积储气罐之间的防火间距,不应小于相邻较大罐直径的多少?
- 依据《水污染防治法》,下列机构有权依法批准饮用水水源保护区的是()。
- 同一个量在重复条件下测量结果不同时的不确定度是不同的。
- 可见恶寒表现的方证是()
- 国际电力市场化改革的新趋势是()。
- 8、同一地点有大潮与小潮主要是由于________。
- 对"主诉"写作的要求包括()
- 《移动式压力容器充装许可规则》规定:移动式压力容器充装介质不包括冷冻液化气体。此题为判断题(对,错)。
- 对病因含义最确切的表达是 A.病原微生物 B.物理因素 C.化学因素 D.心理因素 E.凡能使人们发病概率增加的因素