精选优质文档-倾情为你奉上#include stdio.h#define MAX 50main()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