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

C program to find sum of lower triangular matrix

Write a C program to read elements in a matrix and find sum of lower triangular matrix. How to find sum of lower triangular matrix in C. Logic to find sum of lower triangular matrix in C programming.

Example

Input

Input elements in matrix:
1 0 0
4 5 0
7 8 9

Output

Sum of lower triangular matrix = 19

Read more

C program to find sum of upper triangular matrix

Write a C program to read elements in a matrix and find sum of upper triangular matrix. How to find sum of upper triangular matrix in C. Logic to find sum of upper triangular matrix.

Example

Input

Input matrix elements: 
1 2 3
0 5 6
0 0 9

Output

Sum of upper triangular matrix = 11

Read more

C program to find determinant of a matrix

Write a C program to read elements in a matrix and find determinant of the given matrix. C program to find determinant of a 2×2 matrix and 3×3 matrix. Logic to find determinant of a matrix in C programming.

Example

Input

Input elements in 2x2 matrix: 
1 2
3 4

Output

Determinant of the matrix = -2

Read more

C program to check symmetric matrix

Write a C program to read elements in a matrix and check whether the given matrix is symmetric matrix or not. How to check symmetric matrix in C. Logic to check symmetric matrix in C programming.

Example

Input

Input matrix elements: 
1 2 3
2 4 5
3 5 8

Output

Given matrix is symmetric matrix.

Read more

C program to find transpose of a matrix

Write a C program to read elements in a matrix and find transpose of the given matrix. How to find transpose of a given matrix in C. Logic to find transpose of a matrix in C programming.

Example

Input

Input elements in matrix: 
1 2 3
4 5 6
7 8 9

Output

Transpose: 
1 4 7
2 5 8
3 6 9

Read more

C program to check sparse matrix

Write a C program to read elements in a matrix and check whether matrix is Sparse matrix or not. C program for determining sparse matrix. How to check sparse matrix in C. Logic to check sparse matrix in C programming.

Example

Input

Input elements in matrix: 
1 0 3
0 0 4
6 0 0

Output

The given matrix is Sparse matrix

Read more