竞赛
考级
这代码不怎么严谨,输入0时就不会输出,但也是成功通过了
#include<bits/stdc++.h> using namespace std; int main(){ int w; cin>>w; while(w!=0){ cout<<w%10<<" "; w=w/10; } return 0; }
提交答案之后,这里将显示提交结果~