Posts

Showing posts from February 8, 2013

To convert hexadecimal to decimal numbers.

#include #include #include #include void main() {             char hex[' '], c;             int i,len,dec[' '],total;             clrscr();             do             {                         printf("Enter hexadecimal number:\t");                         gets(hex);                         len=strlen(hex);       ...

To convert hexadecimal to decimal numbers.

#include #include #include #include void main() {             char hex[' '], c;             int i,len,dec[' '],total;             clrscr();             do             {                         printf("Enter hexadecimal number:\t");                         gets(hex);                         len=strlen(hex);       ...