Knowee
Questions
Features
Study Tools

1) Program to print first 20 natural numbers.2) Program to print even numbers uptoo 453) Program to print numbers from 1 to 25 along with its sqaures.4) Program to print numbers in counts of 10 upto 200.5) Program to print the following series 105,98,………7 using while loop.6) Program to print twenty whole numbers in reverse order.

Question

  1. Program to print first 20 natural numbers.2) Program to print even numbers uptoo 453) Program to print numbers from 1 to 25 along with its sqaures.4) Program to print numbers in counts of 10 upto 200.5) Program to print the following series 105,98,………7 using while loop.6) Program to print twenty whole numbers in reverse order.
🧐 Not the exact question you are looking for?Go ask a question

Solution

Sure, here are the Python programs for your questions:

  1. Program to print first 20 natural numbers.
for i in range(1, 21):
    print(i)
  1. Program to print even numbers up to 45.
for i in range(2, 46, 2):
    print(i)
  1. Program to print numbers from 1 to 25 along with its squares.
for i in range(1, 26):
    print(i, i**2)
  1. Program to print numbers in counts of 10 up to 200.
for i in range(10, 201, 10):
    print(i)
  1. Program to print the following series 105,98,………7 using while loop.
i = 105
while i >= 7:
    print(i)
    i -= 7
  1. Program to print twenty whole numbers in reverse order.
for i in range(20, 0, -1):
    print(i)

This problem has been solved

Similar Questions

Write a program to enter two numbers and print the arithmeticoperations like +,-,*,**, /, // and % using function

Write a Python program to generate a series of 10 natural numbers.

What will be the output of the following program?while i < 20: print(i) i += 1

Write a Python program to print the square of first 10 natural numbers, using while loop

write a program to print armstrong numbers to n

1/3

Upgrade your grade with Knowee

Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.