Powered by Blogger.

Saturday, January 19, 2013

Hex,Oct equivalent

#include<stdio.h>
#include<conio.h>
#include<stdlib.h>
void main()
{
    clrscr();
    int hex;
    int oct=024;
    int un=-455;
    printf("enter the no. for hexadecimal no.");
    scanf("%d",&hex);
    printf("\nThe Hexadecimal equivalent is:%x",hex);
    printf("\nthe octal no: %o",oct);
    printf("\nthe ..... %u",un);
    getch();
    }

0 comments:

Post a Comment