Answers for "Find the 15th term of the series?0,0,7,6,14,12,21,18, 28"

0

Find the 15th term of the series?0,0,7,6,14,12,21,18, 28

n = int(input())
ll = [0,0]
for i in range(n//2):
    ll.append(ll[-2] + 7)
    ll.append(ll[-2] + 6)
print(ll[n])
Posted by: Guest on June-12-2021

Code answers related to "Find the 15th term of the series?0,0,7,6,14,12,21,18, 28"

Python Answers by Framework

Browse Popular Code Answers by Language