Write out two short Python programs for printing all integers between 14 and 92 (both inclusive) that are divisible by 7 or even. One program should use a for loop and one with a while loop.

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter5: Control Structures Ii (repetition)
Section: Chapter Questions
Problem 34SA
icon
Related questions
Question

Write out two short Python programs for printing all integers between 14 and 92 (both inclusive) that are divisible by 7 or even. One program should use a for loop and one with a while loop. 

Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning