Sunday, March 14, 2021

1.15. 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 octal number is: %X. ", n);
getch ();
}

1 comment: