C program to convert Octal to Decimal number system

Write a C program to input Octal number from user and convert to Decimal number system. How to convert from Octal number system to Decimal number system in C program. Logic to convert octal to decimal number system in C programming.

Example

Input

Input octal number: 172

Output

Decimal number: 122

Read more

C program to convert Octal to Binary number system

Write a C program to input Octal number from user and convert to Binary number system. How to convert from Octal number system to Binary number system in C. Logic to convert octal to binary number system in C programming.

Example

Input

Input octal number: 172

Output

Binary of 172: 01111010

Read more

C program to convert Decimal to Hexadecimal number system

Write a C program to input decimal number from user and convert to Hexadecimal number system. How to convert Decimal to Hexadecimal number system in C programming. Logic to convert decimal to hexadecimal number system in C programming.

Example

Input

Input decimal number: 26

Output

Hexadecimal number: 1A

Read more

C program to convert Decimal to Octal number system

Write a C program to input decimal number from user and convert to octal number system. How to convert from decimal number system to octal number system in C programming. Logic to convert decimal to octal number system in C programming.

Example

Input

Input decimal: 22

Output

Octal number: 26

Read more

C program to convert Decimal to Binary number system

Write a C program to input decimal number from user and convert to binary number system. How to convert from decimal number to binary number system in C program. Logic to convert decimal to binary number system in C programming.

Example

Input

Input decimal number: 112

Output

Binary number: 0111000

Read more

C program to convert Binary to Hexadecimal number system

Write a C program to input binary number from user and convert to hexadecimal number system. How to convert binary to hexadecimal number system in C program. Logic to convert binary to hexadecimal number system in C programming.

Example

Input

Enter binary number: 11000010

Output

Hexadecimal: C2

Read more

C program to convert Binary to Octal number system

Write a C program to input binary number from user and convert to octal number system. How to convert from binary number system to octal number system in C. Logic to convert binary to octal number system in C programming.

Example

Input

Input binary number: 00110111

Output

Octal number: 67

Read more

C program to convert Binary to Decimal number system

Write a C program to input binary number from user and convert binary number to decimal number system. How to convert from binary number system to decimal number system in C programming. Logic to convert binary to decimal number system in C programming.

Example

Input

Input number: 0011

Output

Decimal: 3

Read more

C program to find twos complement of a binary number

Write a C program to input binary number from user and find twos complement of the binary number. How to find 2s complement of a binary number in C. Logic to find twos complement of a binary number in C programming.

Example

Input

Input binary number: 01101110

Output

Twos complement: 10010010

Read more

C program to find ones complement of a binary number

Write a C program to input binary number from user and find ones complement of binary number using loop. How to find 1s complement of a binary number in C programming. Logic to find ones complement of binary number in C programming.

Example

Input

Input binary number: 01000011

Output

Ones complement: 10111100

Read more