Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Program to Display hexadecimal, decimal, octal number format of the entered numbers.
- #include<stdio.h>
- void main()
- {
- int num; //coded by Suman Maji
- printf("Enter the number : ");
- scanf("%d",&num);
- printf("\nDecimal format : %d",num);
- printf("\nHexaDecimal format : %x",num);
- printf("\nOctal format : %o",num);
- }
Add Comment
Please, Sign In to add comment