- In the field of programming, Iteration Statements are helpful when we need a specific task in repetition. They’re essential as they reduce hours of work to seconds. An iteration is a sequence of instructions that is continually repeated until a certain condition is reached. As per given statement you need to implement the task using iterations. A number is said to be valid if it is divisible by 8. Develop a logic that allows the user to keep entering numbers as long as the input is valid and also displays a count of the valid numbers. Sample Input and Output: Enter the number 8 Enter the number 16 Enter the number 96 Enter the number 6 Total 3 numbers are valid numbers.
-
Notifications
You must be signed in to change notification settings - Fork 61
RajwinderE2917554/Fundamentals-of-Object-Oriented-Programming
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published