0
579views
Write a python program to print the series of 0 0 2 1 4 2 6 3 8 4
1 Answer
0
30views

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 …

Create a free account to keep reading this post.

and 2 others joined a min ago.

Please log in to add an answer.