Write a program to convert a 2-digit BCD number into hexadecimal
WRITE A PROGRAM TO CONVERT A 2-DIGIT bcd NUMBER INTO HEXADECIMAL
WRITE A PROGRAM TO CONVERT A 2-DIGIT bcd NUMBER INTO HEXADECIMAL
pongada punda vayanungala ..................
This is not a question.
Write a program to convert a 2-digit BCD number into hexadecimal
try this i got output: int main(){ int o; scanf("%o",&o); printf("%x",o); getch(); }
write a c++ program to convert binary number to decimal number by using while statement
One way to accomplish this is to allow the printf statement to do the work for you. Example: printf("Decimal %d = hex %02x\n", number, number); Or you could use the windows calculator. Select the Dec radian, type your number in, then select Hex radian.
int main (void) { puts ("210H"); return 0; }
90 = 1011010 (or 5A in hexadecimal).
Assuming the original number is written in base 10, there is no need to convert this to base 10 as it is already there. The hexadecimal number represented as 601 in base 16 is represented in decimal as 1537.
Writing H after a number means the number is a hexadecimal, or base 16, number.
How is this a question? Sounds like you should do more of your homework offline.