h19371213 @ 2020-08-07 10:43:50
#include<iostream>
using namespace std;
int a[6],i;
int mian()
{
for(i=1;i<=5;i++)
{
cin>>a[i];
}
for(i=5;i>=1;i--)
{
cout<<a[i];
}
return 0;
}
by h19371213 @ 2020-08-15 09:38:20
@黑客已入侵 可是变wa了
by newbie666 @ 2020-08-15 09:55:45
@he20081213 我教你个方法,用字符串搞 代码如下:```cpp
using namespace std; string a; signed main(){ cin>>a; int len=a.size(); for(int i=len-1;i>=0;i--) cout<<a[i]; return 0; }
by h19371213 @ 2020-08-15 11:00:59
@黑客已入侵 谢谢!
by newbie666 @ 2020-08-15 11:06:50
@he20081213 不用谢