Advertisement
Tahamina_Taha

conversion between decimal and hexa-decimal

Aug 17th, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.24 KB | None | 0 0
  1. #include<stdio.h>
  2. int main()
  3. //conversion between decimal and hexa-decimal
  4. {
  5.        int num;
  6.    printf("Enter any Hexa-deciamal number : \n");
  7.    scanf(" %x",&num);
  8.    printf("Decimal number: %d",num);
  9.    getch();
  10.     return 0;
  11.  
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement