Online Judge
Toggle navigation
C++题库系统 OJ
首页
问题列表
状态
排行榜
登录
首页
问题
04倒序输出五位数
想要答案的自己抄
张修睿
•
4个月前
#include<bits/stdc++.h>
using namespace std;
int main(){
int a,b,c,d,e,f,g,h,i;
cin>>a;
b=a/10;
c=a%10;
d=b/10;
e=b%10;
f=d/10;
g=d%10;
h=f/10;
i=f%10;
cout<<c<<e<<g<<i<<h;
return 0;
}
评论:
回复