Computer Science, asked by priyanshmor2600, 7 months ago

WAP to print even natural no

Answers

Answered by rishavsharma21pd1prg
0

Answer:

x=int(input('Enter the last number')

print('Even natural numbers are')

for i in range (x)

     if i%2==0:

         print(i)

Explanation:

i am using python language

Answered by gaganadithyareddy9
0

Answer:

Hey! Here is your program in python...

x = int(input("Enter last no: "))

print("All natural numbers from 1 to", x, "are"

for i in range(x+1):

   if i%2 == 0:

       print(i, end=', ')

# HOPE THIS HELPS!!

Similar questions