> 其他 >
c++编程 输入一个四位正整数,然后分别显示其千位数、百位数、十位数和个位数及其他每位数字对应的ASCII码
输入一个四位正整数,然后分别显示其千位数、百位数、十位数和个位数及其他每位数字对应的ASCII码.如果输入为7592,则要求输出为:
7 5 9 2
55 53 57 50
人气:304 ℃ 时间:2020-06-29 23:11:57
解答
#include "math.h"
#include
using namespace std;
#define M 4
void main()
{
int num,p[M],i;
cout
推荐
猜你喜欢
© 2024 79432.Com All Rights Reserved.
电脑版|手机版