Computer Science, asked by maunisijan, 6 months ago

Write a menu driven program to print the following series as per user’s
choice :
i) (1/2) + (2/3) + (3/4) + ...... + (19/20)
ii) 2 - 4 + 6 - 8 + ...... - 20

Answers

Answered by RuwaisnZaid
0

Explanation:

i)

x = int(input("enter no.of n turn"))

u1 = int(input("enter first no "))

u2= int(input("enter 2nd no"))

for i in range(n):

print((u1/u2,"+",end=" " )

u1+=1

u2+=1

Similar questions