Advertisement
Tahamina_Taha

conversion between octal and hexa-decimal

Aug 17th, 2019
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.31 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. //conversion between octal and hexa-decimal
  4. {
  5.     int num;
  6.     printf("Enter any Octal number : \n");
  7.     scanf(" %o",&num);
  8.     printf("hexa-decimal number: %x",num);/*hexadecimal is a positional numeral
  9.     system with a radix, or base, of 16.*/
  10.     getch();
  11.     return 0;
  12.  
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement