重要提示:请勿将账号共享给其他人使用,违者账号将被封禁!
查看《购买须知》>>>
首页 > 大学专科> 电子信息
网友您好,请在下方输入框内输入要搜索的题目:
搜题
拍照、语音搜题,请扫码下载APP
扫一扫 下载APP
题目内容 (请给出正确答案)
[主观题]

写出程序的运行结果。 #include main() {int a, b; scanf ("%d%d", &a,

写出程序的运行结果。

#include

main()

{int a, b;

scanf ("%d%d", &a, &b);

if (a>=h) printf("Yes");

printf (" a+h =%d\n", a+h );

}

如果输入:a=6,b=8,则输出结果是___________

答案
查看答案
更多“写出程序的运行结果。 #include main() {int a, b; scanf ("%d%d", &a,”相关的问题

第1题

写出程序的输出结果。 #include main() {ìntk=lO; char c="b"'; do swith

写出程序的输出结果。

#include

main()

{ìntk=lO; char c="b"';

do

swith(c++)

{ case'a':k++;

case'b':k--;

case'c' :k+=3;break;

case'd',:k=k%4;

}

while(c! ='c');

printf("%d\n",k );

}

运行结果是:____________

点击查看答案

第2题

写出以下程序的运行结果。#include int fun(int a){int b=0;static int c=3;b ; c ;return(a
写出以下程序的运行结果。#include int fun(int a){int b=0;static int c=3;b ; c ;return(a

写出以下程序的运行结果。

#include int fun(int a){int b=0;static int c=3;b ; c ;return(a b c);}

main(){int i, a=5;for (i=0; i<3; i )cout<< i<< " "<< fun(a)<< " ";}

点击查看答案

第3题

阅读程序,写出运行结果。#include <iostream.h>int a=5;void fun(int b)static int a=10;a+=b++
阅读程序,写出运行结果。#include <iostream.h>int a=5;void fun(int b)static int a=10;a+=b++

阅读程序,写出运行结果。

#include <iostream.h>

int a=5;

void fun(int b)

static int a=10;

a+=b++;

cout<< a;

void main()

{

int c=20:

fun(c);

a+Fc++

cout<<a<<endl

}

点击查看答案

第4题

请写出如下程序的输出结果:#include void Swap( int &a, int & b);void main(){int
请写出如下程序的输出结果:#include void Swap(int &a, int & b);void main(){int

请写出如下程序的输出结果:

#include void Swap(int &a, int & b);void main(){int x(10 ), y(7 );

cout<< "x="<< x<< " y="<< y<< endl;Swap(x , y );cout<< "x="<< x<< " y="<< y<< endl;

}void Swap(int & a, int & b){ int temp; temp = a ; a=b ; b=temp ; }

点击查看答案

第5题

写出下列程序输出结果()。#include<stdio.h >main(){int a=3, b=5,s; ;s=a*b;printf (s=%d/n, s);}
写出下列程序输出结果()。#include<stdio.h >main(){int a=3, b=5,s; ;s=a*b;printf (s=%d/n, s);}

点击查看答案

第6题

阅读下面程序,写出输出结果。#include using namespace std ; class A { int a, b; public :
阅读下面程序,写出输出结果。#include using namespace std ; class A { int a, b; public :

阅读下面程序,写出输出结果。

#include using namespace std ; class A { int a, b; public : A() { a = b = 0; }

A(int aa, int bb) { a = aa; b = bb; cout << a << ' ' << b << endl ; } }; int main() { A x, y(2,3);

return 0; }

点击查看答案

第7题

描述程序功能并写出程序执行结果:#includemian(){inta=[3][3]={1,3,5,7,9,11,13,15,17},sum=0,i,for(i=0;i<3;j++)if(i==j)sum=sum+a[j];printf(“sum=%d\n”,sum);}

点击查看答案

第8题

请写出如下程序的输出结果:#include class R{public:R(int r1,int r2) {R1=r1;R2=r2;}void p
请写出如下程序的输出结果:#include class R{public:R(int r1,int r2) {R1=r1;R2=r2;}void p

请写出如下程序的输出结果:

#include class R{public:R(int r1,int r2) {R1=r1;R2=r2;}void print();

void print() const;private:int R1,R2;};void R::print(){cout<< R1<< ":"<< R2<< endl;

}void R::print() const{cout<< R1<< ";"<< R2<< endl;}void main(){R a(5,4);a.print();

const R b(20,52);b.print();}

点击查看答案

第9题

输入字母a时,下列程序的运行结果为【 】。 include <stdio.h> main() { char ch;

输入字母a时,下列程序的运行结果为【 】。 include <stdio.h> main() { char ch; ch=getchar(); (ch>=a&&ch<=z)?putchar(ch+A-a):putchar(ch); }

点击查看答案

第10题

下面程序的运行结果()。 include<stdio.h> void main() { ifdef MYDEBUG int a=90;

下面程序的运行结果()。 include<stdio.h> void main() { ifdef MYDEBUG int a=90; printf("a=%d\n",a); else a+=10; printf("a=%d\n",a); endif )

A.a=90

B.a=100

C.a=190

D.程序不正确

点击查看答案
下载APP
关注公众号
TOP
重置密码
账号:
旧密码:
新密码:
确认密码:
确认修改
购买搜题卡查看答案 购买前请仔细阅读《购买须知》
请选择支付方式
  • 微信支付
  • 支付宝支付
点击支付即表示同意并接受了《服务协议》《购买须知》
立即支付 系统将自动为您注册账号
已付款,但不能查看答案,请点这里登录即可>>>
请使用微信扫码支付(元)

订单号:

遇到问题请联系在线客服

请不要关闭本页面,支付完成后请点击【支付完成】按钮
遇到问题请联系在线客服
恭喜您,购买搜题卡成功 系统为您生成的账号密码如下:
重要提示:请勿将账号共享给其他人使用,违者账号将被封禁。
发送账号到微信 保存账号查看答案
怕账号密码记不住?建议关注微信公众号绑定微信,开通微信扫码登录功能
请用微信扫码测试
优题宝