十进制转换十六进制C语言源代码.docx

上传人:牧羊曲112 文档编号:3344765 上传时间:2023-03-12 格式:DOCX 页数:1 大小:36.27KB
返回 下载 相关 举报
十进制转换十六进制C语言源代码.docx_第1页
第1页 / 共1页
亲,该文档总共1页,全部预览完了,如果喜欢就下载吧!
资源描述

《十进制转换十六进制C语言源代码.docx》由会员分享,可在线阅读,更多相关《十进制转换十六进制C语言源代码.docx(1页珍藏版)》请在三一办公上搜索。

十进制转换十六进制C语言源代码#include stdio.h #define MAX 50 main int n,aMAX,i=0,sign=0; clrscr; printf(Please input the decimal num:); scanf(%d,&n); if(n=0) printf(HEX=%d,n); printf(nnnPress any key to exit.); getch; exit(0); if(n0;i-) switch(ai-1) case 10: printf(a);break; case 11: printf(b);break; case 12: printf(c);break; case 13: printf(d);break; case 14: printf(e);break; case 15: printf(f);break; default: printf(%d,ai-1); printf(nnPress any key to exit.); getch;

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 生活休闲 > 在线阅读


备案号:宁ICP备20000045号-2

经营许可证:宁B2-20210002

宁公网安备 64010402000987号