测评会员优惠活动进行中 · 开通 VIP,有效期内测评不限次 VIP 优惠中 · 测评不限次 立即查看

A25297. 以下程序的功能是对一个正整数n进行数位分离,并按逆序打印每一位,①处应该填写?( )#include<iostream> using namespace std; int main(){ int n; cin >> n; while (____①____){ int d = n % 10; n /= 10; cout << d << " "; } return 0; }

单选题 容易

题目描述

以下程序的功能是对一个正整数n进行数位分离,并按逆序打印每一位,①处应该填写?(    )

#include<iostream>
using namespace std;
int main(){
    int n;
    cin >> n;
    while (____①____){
        int d = n % 10;
        n /= 10;
        cout << d << " ";
    }
    return 0;
}

选项(单选)

上一题 下一题