C语言 设计算法输入一个四位正整数,将它们倒排,例如输入1234,输出4321。

日期:2021-04-21 12:03:47 人气:1

C语言 设计算法输入一个四位正整数,将它们倒排,例如输入1234,输出4321。

// z2.cpp : 定义控制台应用程序的入口点。
//
#include "stdafx.h"
#include<iostream>
#include<math.h>
using namespace std;
void Reverse(int &m)//m为4位整数
{
m=1000*(m%10)+100*(m%100/
    A+
热门评论