Answers for "while loop odd numbers python"

0

while loop odd numbers python

# Python Program to Print Odd Numbers from 1 to N

maximum = int(input(" Please Enter the Maximum Value : "))

number = 1

while number <= maximum:
    if(number % 2 != 0):
        print("{0}".format(number))
    number = number + 1
Posted by: Guest on July-08-2021

Python Answers by Framework

Browse Popular Code Answers by Language