Computer Science, asked by venus9642, 6 months ago

Prepare a python program to display multiples of 7 below 200

Answers

Answered by allysia
4

Language:

Python

Program:

\\\tt for\ i\ in\ range(0,201):\\\tt {\qquad    if\ i\%7==0: }   \\\tt {\qquad {\qquad      print (i) }} \\\tt  {\qquad   else: } \\\tt     {\qquad {\qquad    p a  ss}}

Output:

Consider the attachment.

Explanation:

  • Line 1: Starts for loop.
  • Line 2: Checks if the number is divisible by 7.
  • Line 3: Prints if it is.
  • Line 5: Lets it páss if not.

Attachments:
Similar questions