Math, asked by cuteee6611, 1 year ago

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

Answers

Answered by Shaizakincsem
2

Thank you for asking this question.

/*

* 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;


If there is any confusion please leave a comment below.

Similar questions