1 #include <iostream> 2 using namespace std; 3 int main() 4 { 5 int a,i,b[4]; 6 cin>>a; 7 b[3]=a%10; 8 a=a/10; 9 b[2]=a%10; 10 a=a/10; 11 b[1]=a%10; 12 a=a/10; 13 b[0]=a%10; 14 a=a/10; 15 for(i=0;i<=3;i++) 16 cout<<b[i]<<" "; 17 cout<<endl; 18 return 0; 19 }
时间: 2024-11-14 01:04:44