{"id":12210,"date":"2021-09-30T15:00:31","date_gmt":"2021-09-30T09:30:31","guid":{"rendered":"https:\/\/python-programs.com\/?p=12210"},"modified":"2021-11-22T18:34:28","modified_gmt":"2021-11-22T13:04:28","slug":"python-program-to-print-number-reduction-pattern","status":"publish","type":"post","link":"https:\/\/python-programs.com\/python-program-to-print-number-reduction-pattern\/","title":{"rendered":"Python Program to Print Number Reduction Pattern"},"content":{"rendered":"

Don’t miss the chance of Java programs examples with output pdf free download<\/a> as it is very essential for all beginners to experienced programmers for cracking the interviews.<\/p>\n

Given the number of rows, the task is to print Number Reduction Pattern in C, C++, and Python<\/p>\n

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

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

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

Given number of rows = 4<\/pre>\n

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

1 2 3 4 \r\n2 3 4 \r\n3 4 \r\n4<\/pre>\n

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

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

Given number of rows = 14<\/pre>\n

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 \r\n2 3 4 5 6 7 8 9 10 11 12 13 14 \r\n3 4 5 6 7 8 9 10 11 12 13 14 \r\n4 5 6 7 8 9 10 11 12 13 14 \r\n5 6 7 8 9 10 11 12 13 14 \r\n6 7 8 9 10 11 12 13 14 \r\n7 8 9 10 11 12 13 14 \r\n8 9 10 11 12 13 14 \r\n9 10 11 12 13 14 \r\n10 11 12 13 14 \r\n11 12 13 14 \r\n12 13 14 \r\n13 14 \r\n14 \r\n<\/pre>\n

Program to Print Number Reduction Pattern in C, C++, and Python<\/h2>\n

Below are the ways to print Number Reduction Pattern in C, C++, and Python<\/p>\n