题目链接:点击这里
#include<iostream>
using namespace std;
int main()
{
int n, temp;
cin>>n;
do
{
temp = n%10;
n /= 10;
cout<<temp<<" ";
}while(n>0);
return 0;
}
2024-03-22 15:29:10
题目链接:点击这里
#include<iostream>
using namespace std;
int main()
{
int n, temp;
cin>>n;
do
{
temp = n%10;
n /= 10;
cout<<temp<<" ";
}while(n>0);
return 0;
}