Download presentation
Presentation is loading. Please wait.
Published byBrandon Chambers Modified over 6 years ago
1
Repetition and Loops while do while for continue break
2
Most programs involve repetition or looping.
A loop is a group of instructions the computer executes repeatedly while some loop-continuation condition remains true.
6
Finding factorial number
10
Nested loops
12
infinite loops (loops that do not finish executing)
13
Factors of a number
14
Finding power of a number
15
Finding fibonacci series
31
Homework Write a program that finds whether a given integer is an Armstrong number: Such as: 153 = 1*1*1 + 5*5*5 + 3*3*3 // 153 is an Armstrong number. 12 is not equal to 1*1*1+2*2*2 // 12 is not an Armstrong number. The program will read the integer from the user and find the result Send the “my_program_e c” file to my address Until Sunday midnight
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.