<img src="http://img.blog.csdn.net/20141117102843535?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvSV9fQW1fX0xlZ2VuZA==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center" alt="" /><pre class="cpp" name="code">#include <iostream> using namespace std; int main() { int a,b; while (cin>>a) { do { b=a%10; a=a/10; cout<<b<<" "; } while (a!=0); cout<<endl; } return 0; }
时间: 2024-10-18 00:53:45