#include <stdio.h>
int main() {
int num;
printf ("Enter the value:",num);
scanf ("%d",&num);
printf ("%d\n",num);
printf ("The decimal value is :%d\n",num);
scanf ("%d",&num);
printf ("The octal value is :%o\n",num);
scanf ("%d",&num);
printf ("The hexa decimal is:%X\n",num);
scanf ("%d",&num);
return 0;
}
To embed this program on your website, copy the following code and paste it into your website's HTML: