Searching...
Wednesday, October 30, 2013

decimal to octal and hexadecimal converter in c programming

10:15 AM


Hello, we want to be a computer programmer. So I want to be help you to do any c program.
 I will show you step by step.  Today I have made  a program. I hope it will help  you
To searching a value decimal to octal and hexadecimal. The program is given  below.   

#include<stdio.h>
int main()
{
    int a;
    printf("enter a posetive integer number:\t");
    scanf("%d",&a);
    printf("\nyou have entered : %i (indecimal format)",a);
    printf("\nyou have entered : %o (octal format)",a);
    printf("\nyou have entered : %x (hexadecimal format)",a);
    return 0;
}

0 comments:

Post a Comment

Followers