By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,596 Members | 1,869 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,596 IT Pros & Developers. It's quick & easy.

Please Send Me The C program Which converts the decimal number to hexadecimal

P: 1
Please Send Me The C program Which converts the decimal number to hexadecimal
Nov 11 '06 #1
Share this Question
Share on Google+
1 Reply


P: 13
Expand|Select|Wrap|Line Numbers
  1. #include<stdio.h>
  2.  
  3. int main()
  4. {
  5.     int num;
  6.  
  7.     printf("Enter a decimal number\n?");
  8.     scanf("%d",&num);
  9.  
  10.     printf("Hexadeciaml -> %X\n",num);
  11.     getchar();
  12.     getchar();
  13.     return 0;
  14. }
  15.  
  16.  
this is just a sample code.

ssharish
Nov 11 '06 #2

Post your reply

Sign in to post your reply or Sign up for a free account.