Monday 20 January 2014

Very simple code to convert hexadecimal Number to decimal Number

#include<stdio.h>

int main(){
   int hex, dec;
   printf("\nEnter the value in hexadecimal :");
    scanf("%x", &hex);

    printf("%d", hex);
    return 0;
}

No comments:

Post a Comment