C_U1p6.c

#include<stdio.h> #include<conio.h> void main() { int num; clrscr(); printf("Enter the number : "); scanf("%d",&num); printf("\nDecimal format : %d",num); printf("\nHexaDecimal format : %x",num); printf("\nOctal format : %o",num); getch(); }

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.