有以下程序#include <iostream> us

有以下程序

#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;
}

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

答案
B

题目信息

题号:335
题型:单选题
难度:普通