第21718题 单选题
给定对正整数n进行数位分离并逆序打印的C++程序,while循环的①处应填写什么条件?
#include<iostream>
using namespace std;
int main(){
    int n;
    cin >> n;
    while (_①_){
        int d = n % 10;
        n /= 10;
        cout << d << " ";
    }
    return 0;
}
A

n > 0

B

n >= 0

C

n < 0

D

n <= 0

程序运行统计
暂无判题统计