# C++ Programming Code Examples

## C++ > Computer Graphics Code Examples

### Area Of Square

C Programming Add digits of the number -
In "for loop" condition is first tested and then body is executed. Carefully look at semicolon at the end of 'for loop', which tells us two things for loop is bodyless. Only condition...

Calculates Area & Circumference of Circle -
To calculate area and circumference we must know the radius of circle. C program code will prompt user to enter the radius and based on the input it would calculate the values. Make

Program to Converts Celsius to Fahrenheit -
Fahrenheit & Celsius are two unit for measure temperature. Formula to convert "Celsius" to Fahrenheit using this formula you can change temperature fahrenheit to celsius. Use temp

C Finds Sum of Even Numbers from 1 to N -
C Program to input upper limit to find sum of even number. Store it in some variable say N. Initialize another variable to store sum with 0 say sum = 0. To find sum of even numbers we

Use If Else Statements C++ Programming -
In sometimes you have a "condition" and you want to execute a block of code if condition is true and execute another piece of code if the same condition is false. This can be achieved

C Code Function Solve the Tower of Hanoi -
C Program code uses Recursive Function and solves the tower of hanoi. Tower of hanoi is a mathematical puzzle. It consists of threerods, and a number of disks of different sizes which

Find the Length of the Linked List without -
C Language program Find the Length of the linked list without using recursion. Program, using iteration, counts the number of nodes in a Linked List. A linked list is an ordered set

Encode the String Display Encoded Strings -
Read a 'five-letter' Word into the pc, and then encode the word on a letter-by-letter basis by subtracting 30 from the Numerical value that is used to represent each Letter. Thus if ASCII