Subscribe For Free Updates!

We'll not spam mate! We promise.

Wednesday, October 30, 2013

decimal to octal and hexadecimal converter in c programming



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;
}

Socializer
SOCIALIZE IT →
FOLLOW US →
SHARE IT →

0 comments:

Post a Comment

Contact Form

Name

Email *

Message *