Now, let's learn how to use repeating structures, also known as loops or loopings.
With them, we will allow our programs to repeat certain code snippets as much as we like. And this is absurdly common, widely used in the computer world.
We will learn how to use loopings:
- while
- do while
- for
Repetition Statements
- Operators of Assignment, Increment and Decrement
- WHILE loop
- DO WHILE looping
- FOR repetition statement
- Multiplication table with FOR, WHILE and DO WHILE
- Summation and Factorial
- Fibonacci series
- Exponentiation with loopings in C++
- Nested loopings
Powerball lottery - break and continue statements
- Prime numbers in C++
- Loopings exercises
No comments:
Post a Comment