0 of 3 Questions completed
Questions:
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading…
You must sign in or sign up to start the quiz.
You must first complete the following:
0 of 3 Questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 point(s), (0)
Earned Point(s): 0 of 0, (0)
0 Essay(s) Pending (Possible Point(s): 0)
1、阅读程序,根据输入写出结果:
1 2 3 4 5 6 7 8 9 10 11 12 13 |
#include <iostream> using namespace std; int main(){ int a,b,c,d,e,ans; cin>>a>>b>>c; d=a+b; e=b+c; ans=d+e; ans--; cout<<ans++<<endl; return 0; } |
如果程序输入为1,2,5,程序输出结果为 ?
2、阅读程序写结果:(2014年普及组)
1 2 3 4 5 6 7 8 9 10 11 12 |
#include <iostream> using namespace std; int main() { int a, b, c, d, ans; cin >> a >> b >> c; d = a - b; a = d + c; ans = a * b; cout << "Ans = " << ans << endl; return(0); } |
输入:2 3 4 输出:Ans=
3、编译器的主要功能是( )。(2014年真题)