black

CPP考试

登录

单项选择题

1)#include
2)usingnamespacestd;
3)intmain()
4){
5)inta,b,result;
6)cout<<"pleaseinputtwonumbers:\n";
7)cin>>a>>b;
8)result=3*a-2*b+1;
9)cout<<"resultis"< 10)} 

若在第7行时输入“4空格3单击回车”,则程序第8行执行完后,result的值是:()

A.7
B.15
C.19
D.24

相关考题

单项选择题 程序第8行中有几种操作符:()

单项选择题 程序执行到第8行时,假设此时输入“3,5”再单击回车键,则a的值是:()

单项选择题 程序第6行执行结束后,光标在什么位置:()

All Rights Reserved 版权所有©易学考试网(yxkao.com)

备案号:湘ICP备2022003000号-3