Tuesday 9 December 2014

Program to print octal,decimal,hexa decimal formats
#include<stdio.h>
main()
{
int n;
printf("enter value for n\n");
scanf("%d",&n);
printf("n=%d n=%x n=%o\n",n,n,n);
}
OutPut:
enter value for n
45
n=45 n=2d n=55