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

Our website provided core java programs examples with output<\/a> aid beginners and expert coders to test their knowledge gap and learn accordingly.<\/p>\n

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

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

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

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

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

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

7 6 5 4 3 2 1 \r\n6 5 4 3 2 1 \r\n5 4 3 2 1 \r\n4 3 2 1 \r\n3 2 1 \r\n2 1 \r\n1<\/pre>\n

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

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

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

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

10 9 8 7 6 5 4 3 2 1 \r\n9 8 7 6 5 4 3 2 1 \r\n8 7 6 5 4 3 2 1 \r\n7 6 5 4 3 2 1 \r\n6 5 4 3 2 1 \r\n5 4 3 2 1 \r\n4 3 2 1 \r\n3 2 1 \r\n2 1 \r\n1<\/pre>\n

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