 # C++ Programming Code Examples

## C++ > Mathematics Code Examples

### To Calculate Determinant of a Matrix Using Recursion

Find ones complement of a binary number - C program to input binary number from user and find ones complement of binary number using loop. What is Ones complement? Ones complement of a binary number is defined as

C programming Game of Goat and Tiger - This is a game of goat and tiger. First read these instructions. The no should be 4 digit no without 0 in the first place. The digit shouldn't be reapeated. Do you agree the

Takes octal number as input and converts - C Program take the octal number as input and store it in the variable octal. Initialize the variables decimal and j to zero. Obtain the remainder and quotient of the octal number.

C++ Codes Perform Dictionary Operations - This is a C++ Program to perform "dictionary" operations in binary search tree. In computer science, a binary search tree, sometimes also called an ordered or "sorted binary tree", is a

C++ Program to Find Factorial of Number - First think what is the factorial of a number? How 'mathematically' it can be calculated. If you got this info then it will be very easier to make a C++ code logic to find the "Factorial".

Finds First Occurence of the any Character - Program takes 2 strings as input and finds the first occurence of the any character of String2 in String1 & also its position. Take two strings as input. Compare both the strings using two

C Code Finds the Sum of all Nodes in Tree - C Program finds the sum of all nodes in a tree such that any node is sum of values at left and right sub tree. Function to find depth of a tree. Function to modify the tree. Function to

Sort Rows of the Matrix Ascending Order - Program code sorts the rows of the matrix in ascending & columns in descending order. This program accepts matrix. Then sorts the row in an ascending order & the columns in