0
579views
Write a python program to print the series of 0 0 2 1 4 2 6 3 8 4
1 Answer
written 2.0 years ago by |
Problem Statement:-
Series 0 0 2 1 4 2 6 3 8 4
Elements in the even index are the even multiples of 2 and elements in the odd index then divide the value by 2
Code:-
a=0
b=0
n=int(input("No of elements in the series:- "))
# iterate till the …