बिजनेस मार्केटिंग का लो कॉस्ट फंडा , अपने मोबाइल से ऑटो sms भेजकर मार्केटिंग करे विजिट करे http://autotextsms.com/ बिजनेस मार्केटिंग का लो कॉस्ट फंडा http://autotextsms.com/

Search This Blog

Translate

Showing posts with label c program to convert decimal to hexadecimal using functions using array using stack. Show all posts
Showing posts with label c program to convert decimal to hexadecimal using functions using array using stack. Show all posts

c program convert decimal number to hexa desimal

c program convert decimal number to hexa desimal,c program to convert hexadecimal to decimal number,c program to convert decimal to hexadecimal and vice versa,c program to convert decimal to hexadecimal using functions,c program to convert decimal to hexadecimal using array,c program to convert decimal to hexadecimal using recursion,c program to convert decimal to hexadecimal using stack,c program to convert decimal to octal,c program to convert decimal to binary,



c program convert decimal number to hexa desimal



#include
#include
void main()
{
 int n,a[10],i=0;
 clrscr();
 printf("enter the decimal number :");
 scanf("%d",&n);
while(n>=1)
 { a[i]=n%16;
   i++;
   n=n/16;
   }
for(i=i-1;i>=0;i--)
{

if(a[i]>9)
{
switch(a[i])
{
 case 10: printf("A");
      break;
case 11: printf("B");
      break;
      case 12: printf("C");
      break;
      case 13: printf("D");
      break;
      case 14: printf("E");
      break;
      case 15: printf("F");
      break;
      case 16: printf("G");
      break;

}
}
else
printf("%d",a[i]) ;

}
getch();

 }


c program convert decimal number to hexa desimal,c program to convert hexadecimal to decimal number,c program to convert decimal to hexadecimal and vice versa,c program to convert decimal to hexadecimal using functions,c program to convert decimal to hexadecimal using array,c program to convert decimal to hexadecimal using recursion,c program to convert decimal to hexadecimal using stack,c program to convert decimal to octal,c program to convert decimal to binary,

C Program example List