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
A hexaduad is a hexadecimal representation of a 64-bit number, often used in computing. To write a hexaduad, you convert a decimal number or binary data into its hexadecimal equivalent, ensuring it is represented in 16 hexadecimal digits (0-9 and A-F). For example, the decimal number 123456789 would be converted to its hexadecimal form, which is 075BCD15. Each digit corresponds to 4 bits, so 16 digits represent a total of 64 bits.
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.