Sunday, March 14, 2021

1.14. Write a program that read any decimal number and display equivalent hexadecimal number

#include<stdio.h>
#include<conio.h>
void main()
{
int n;
clrscr();
printf("Enter any decimal number: "):
scanf("%d", &n);
printf("Equivalent hexadecimal number is: %x", n);
getch ();
}

No comments:

Post a Comment