多题目

#include <iostream>

using namespace std;

int main()

{

int s, a, n;

s= 0;

a= 1;

cin >> n;

do

{

  s+= 1;

  a-= 2;

}

while ( a != n );

cout << s << endl;

return(0);

}

第1题 单选

若要使程序的输出值为2,则应该从键盘给n输入的值是( )

A.

-1

B.

-3

C.

-5

D.

0

发表评论

登录 后再回复