利用循环,输入一个整数,将各位数字反转后输出

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/05 15:17:25
利用循环,输入一个整数,将各位数字反转后输出

利用循环,输入一个整数,将各位数字反转后输出
利用循环,输入一个整数,将各位数字反转后输出

利用循环,输入一个整数,将各位数字反转后输出
#include
using namespace std;
int main()
{
int a,m;
cin>>a;
while(a!=0)
{
m=a%10;
a=a/10;
cout