{"id":22611,"date":"2021-09-27T08:33:57","date_gmt":"2021-09-27T03:03:57","guid":{"rendered":"https:\/\/python-programs.com\/?p=22611"},"modified":"2021-11-22T18:35:39","modified_gmt":"2021-11-22T13:05:39","slug":"python-program-to-print-series-0-6-10-17-22-30-36-n","status":"publish","type":"post","link":"https:\/\/python-programs.com\/python-program-to-print-series-0-6-10-17-22-30-36-n\/","title":{"rendered":"Python Program to Print Series 0, 6, 10, 17, 22, 30, 36…N"},"content":{"rendered":"

In the previous article, we have discussed Python Program to Print Series 10, 5, 60, 15, 110 …N<\/a>
\nGiven a number N and the task is to print the series (0, 6, 10, 17, 22, 30, 36…N)<\/strong> till the given number N in Python.<\/p>\n

Examples:<\/strong><\/p>\n

Example1:<\/strong><\/p>\n

Input:<\/strong><\/p>\n

Given Number (Limit) = 16<\/pre>\n

Output:<\/strong><\/p>\n

The above series till the given number{ 16 } is :\r\n0 6 10 17 22 30 36 45 52 62 70 81 90 102 112 125<\/pre>\n

Example2:<\/strong><\/p>\n

Input:<\/strong><\/p>\n

Given Number (Limit) = 11<\/pre>\n

Output:<\/strong><\/p>\n

The above series till the given number{ 11 } is :\r\n0 6 10 17 22 30 36 45 52 62 70<\/pre>\n

Program to Print Series 0, 6, 10, 17, 22, 30, 36…N in Python<\/h2>\n

Below are the ways to print the series (0, 6, 10, 17, 22, 30, 36…N)<\/strong> till the given number N in Python:<\/p>\n