第19663题 单选
求无限循环小数0.123123…第N位的值,横线处应填入的C++代码是?
int N;cin >> N;remainder = ______________;if (remainder == 0)    cout << 1;else if (remainder == 1)    cout << 2;else    cout << 3;
A

N % 3

B

(N - 1) % 3

C

N / 3

D

(N - 1) / 3

提交0次 正确率0.00%
答案解析