 # C++ Programming Code Examples

## C++ > Algorithms Code Examples

### Structure

Find Reverse of a Number using Recursion - Declare recursive function to find reverse of a number. Lets give a meaningful name to our function, say reverse(). C function computes reverse of number, hence it must accept an...

Code Finds Area & Circumference of Circle - C Program code to find area & circumference of circle. In this program we have to calculate the area and circumference of the circle. Two formulas for finding Circumference and Area

C Programming Codes Displaying a Table - C Language code how to display a table in C programming language is more or less similar to that of counting. We use only one iteration and increment it with value of which table is

C++ Generate Different Random Numbers - To generate random numbers in C++, use the function rand() to generate and print random numbers. So If you want to generate different different random numbers at each time when

Counting program code in The C language - Counting is sequence of whole numbers in ascending order without zero. Developing a program of counting in C language is easy and we shall see here in this chapter. Count

C If a given Integer is Positive or Negative - Take the integer which you want to check as input and store it in a variable number. Using if, else statements check whether the integer is Greater or Lesser than zero. If it is greater...

C Program Code Counts Number of Digits - C Program to count number of digits without using loop. The second logic uses logarithms to count number of digits in a given integer. Total number of digit in an integer is equal to

Print Strong Numbers between an interval - First give a meaningful name to our function, say "printStrongNumbers()". Along with this we must define function to find factorial of a number, say long long fact(int x);. Next we...