C program to convert decimal number into hexadecimal number without array