Computer Science, asked by debapriyamandal2006, 6 months ago

1. Input the age from the user and print whether he/she is adult or child.
2. Print the series:
1,4,7,10...N
3. Input a number and print its Factors,
4. Print all the even numbers from 50 to 100,​

Answers

Answered by MdZafferAli
0

Answer:

In Python,

1.

Age = int(input("Enter your Complete age"))

If Age > 18 and Age <= 45:

print(" Adult")

elif Age > 0 and Age <= 18:

print("Child")

else:

print("Old Age")

2.

N = int(input("Enter last value of Series: "))

for i in range(1, N+1,3):

print(i)

3.

N = int(input("Enter last value of Series: "))

for i in range(1, 11):

i =i*N

print(i)

4.

for i in range(50,100,2):

print(i)

Similar questions