# C++ Programming Code Examples

## C++ > Conversions Code Examples

### Convert Decimal Number to Octal

Find Sum of Natural numbers from 1 to N -
Program find the sum of all natural numbers between 1 to n. Input upper limit to find sum of natural numbers. Store it in some variable say N. Initialize another variable to store sum

Program to Find the Biggest of 3 Numbers -
This program takes the 3 numbers & finds the biggest among all. Take the three numbers as input and Check the First number if it Greater than other two. Repeat the step 2 for other 2

Write Hello World Program C++ language -
#include: This statements tells the compiler to include iostream file. This file contains pre defined "input/output functions" that we can use in our program. Comments as the names

C++ Programs For Inorder Tree Traversal -
C++ program, without recursion, displays the nodes of a "Particular Binary Tree" in inorder fashion without using recursive traversal. So Enter value of root node. Enter value of node

C++ Program Merge Sort using Linked list -
Split the Data into two equal half until we get at most one element in both half. Merge Both into one making sure the resulting 'Sequence' is sorted. Then 'recursively' split them, merge

Find the Sum of All Nodes in a Binary Tree -
Program code to find the sum of all nodes in a binary tree. Structure to create the binary tree. Inserting elements in the binary tree. C Code to dynamically create new nodes. Code

C++ Implement Gauss Jordan Elimination -
This method can also be used to find the rank of a matrix, to calculate the determinant of a matrix, to calculate the "inverse" of invertible square matrix. C++ Gauss Jordan Elimination

Find Sum of Node values at Row or Level -
C Program to Find the Summation of Node values at Row or Level. Create a new node with the data from the user. Check for root node and then create it. Searching for the...