Let us see a list of important Loop programming exercises and solutions in C++.

## For loop

For loop is a methodology to use a piece of code again and again until the given condition remains true. Loop will terminate when the given condition will false.

For loop have three parts. Loop initialization, Condition, and increment or decrement of a loop.

- Program to find the length of a number in C++ (CPP). Solution
- Program to find the square root of a number in C++. Solution
- Factorial Program in C, C++ (C Plus Plus, CPP) with flow chart. Solution
- Fibonacci Series Program in C++ and C with flowchart. Solution
- Palindrome Program in C, C++, C Plus Plus (CPP) with flow chart. Solution
- Program to the Print sum of the number of Series in C Plus Plus (CPP, C++) and C with Flowchart. Solution
- C++ and C Program to Find the Number of Vowels, Digits, Consonants and White Spaces in a String with flowchart. Solution
- Program in C++, C to display the reverse of a number with flowchart. Solution

## while loop

The while loop is a methodology to use a piece of code again and again until the given condition remains true. Loop will terminate when the given condition will false.

Just lie for loop, the while loop has three parts. 1. Loop initialization, 2. Condition, and 3. increment or decrement of a loop.

- Program of the sum of all digits of a number in C, C Plus Plus (CPP, C++) with flow chart. the solution
- converts a number into binary in C++and C with a flowchart. Solution
- Program in C Plus Plus and C with an explanation to find the Greatest Common Division (GCD). Solution with flowchart. Solution
- C++ Program to convert Octal to decimal number using while loop. Solution

## Do while loop

In Do, while loop, first one time we execute the do part of the loop, and then we check the condition. It means that if the condition is false then still do part execute one time.

- C++ Program to Display English Alphabets from A-Z. Solution
- Write a program in C++ to display the multiplication table vertically from 1 to n. Solution
- C++ Program to Find the Sum of Digits of a Number – C++ Program. Solution
- Program in C++ to display the n terms of even natural number and their sum. Solution
- C++ program to find the sum of all integer between 100 and 200 which are divisible by 9. Solution
- Write a program in C++ to print Floyd’s Triangle. Solution
- C++ program to print pyramid pattern of numbers. Solution
- C++ Program to display the n terms of odd natural number and their sum. Solution
- Convert a binary number to octal in C++. Solution
- c++ program to check whether a given number is a perfect number or not. Solution
- C++ program to find HCF (Highest Common Factor) of two numbers. Solution
- Program in C++ to convert a decimal number into binary without using an array. Solution
- Program C++ to convert an octal number into binary. Solution
- Write a c program to find out the sum of an A.P. series. Solution
- Program in C++, C to display the reverse of a number with flowchart. Solution
- Write the Octal to Decimal number program in C++. Solution
- C++ Program right angle triangle with a number that will repeat a number in a row. Solution
- C++ program to print rhombus or parallelogram star pattern. Solution
- Program in C++ to make such a pattern like a pyramid with a number that will repeat the number in the same row. Solution
- Write a program in C++ to Check Whether a Number can be Express as a Sum of Two Prime Numbers. Solution
- C++ program to print mirrored right triangle star pattern. Solution
- Decimal to octal number conversion program in C++. Solution
- C++ program to print a hollow square or rectangle star pattern. Solution
- C++ Program Sum of odd Natural Number. Solution
- The sum of the first 10 natural numbers program in C++. Solution

## Prefix and postfix

- Prefix and postfix increment and decrement in C++. Solution