> 其他 >
设计一个c++程序,输入一个4位数,将其反序输出.例如1234,输出4321.
人气:215 ℃ 时间:2019-10-10 01:00:54
解答
#include
using namespace std;
int reve_int(int n){
int t=0;
while(n){
t*=10;
t+=n%10;
n/=10;
}
return t;
}
void main(){
int n;
cin>>n;
cout
推荐
猜你喜欢
© 2024 79432.Com All Rights Reserved.
电脑版|手机版