#include<stdio.h>
#include<conio.h>
void main()
{
int I;
clrscr();
printf(“\n This program is to print 1 to 10 numbers in different number system.\n\n”);
printf(“\n |---------------------------------|--------------------------- |---------------------------------------|”);
printf(“\n | Decimal number system|octal number system|hexadecimal number system|”);
for(i=1;i<=10;i++)
{
printf(“\n| %d | %o | %x |”,i,I,i);
}
printf(“\n|------------------------|----------------------------|-------------------------|”);
getch();
}
Program:
need an explanation for this answer? contact us directly to get an explanation for this answer