利用循环,输入一个整数,将各位数字反转后输出
来源:学生作业帮助网 编辑:作业帮 时间:2024/10/06 19:40:05
利用循环,输入一个整数,将各位数字反转后输出
利用循环,输入一个整数,将各位数字反转后输出
利用循环,输入一个整数,将各位数字反转后输出
#include
using namespace std;
int main()
{
int a,m;
cin>>a;
while(a!=0)
{
m=a%10;
a=a/10;
cout
收录互联网各类作业题目,免费共享学生作业习题
鱿鱼慧海网手机作业共收录了 千万级 学生作业题目
来源:学生作业帮助网 编辑:作业帮 时间:2024/10/06 19:40:05
利用循环,输入一个整数,将各位数字反转后输出
利用循环,输入一个整数,将各位数字反转后输出
利用循环,输入一个整数,将各位数字反转后输出
#include
using namespace std;
int main()
{
int a,m;
cin>>a;
while(a!=0)
{
m=a%10;
a=a/10;
cout