Header Ads

Tuesday, 7 August 2018

Write an algorithm, draw a flow chart and write its corresponding C program to convert a decimal number to its equivalent hexadecimal number

C Programme for Convert Decimal Number into Hexadecimal Number

Question1: Write an algorithm, draw a flow chart and write its corresponding C program to convert a decimal number to its equivalent hexadecimal number
Ans: /*
 * C program to Convert Decimal to Hexadecimal
 */
#include <stdio.h>
 #include<conio.h>
int main()
{
    long decim, quotient, remainder;
    int i, j = 0;
    char hexd[100];
     printf("Enter decimal number: ");
    scanf("%ld", &decim);
     quotient = decim;


  
For more Details Click Here..............



0 comments:

Post a Comment