现在有十进制数字2100.怎样把它变成16进制?并且取其中的每位数字(答案要求的是c语言代码)。

日期:2021-07-28 16:08:20 人气:1

现在有十进制数字2100.怎样把它变成16进制?并且取其中的每位数字(答案要求的是c语言代码)。

#include< iostream >
#include< stdio.h >
int main()
{
int a, i;
int c[16];
std::cout<< "请输入一个正整数:"<< std::endl;
std::cin>> a;
while( a < 0 )
{
std::cout&
    A+
热门评论