{"id":12146,"date":"2021-09-30T15:00:30","date_gmt":"2021-09-30T09:30:30","guid":{"rendered":"https:\/\/python-programs.com\/?p=12146"},"modified":"2021-11-22T18:34:28","modified_gmt":"2021-11-22T13:04:28","slug":"python-program-to-print-reverse-pyramid-of-numbers","status":"publish","type":"post","link":"https:\/\/python-programs.com\/python-program-to-print-reverse-pyramid-of-numbers\/","title":{"rendered":"Python Program to Print Reverse Pyramid of Numbers"},"content":{"rendered":"

Are you new to the java programming language? We recommend you to ace up your practice session with these Basic Java Programs Examples<\/a><\/p>\n

Given the number of rows of the pyramid, the task is to print a Reverse Pyramid of Numbers in C, C++, and Python.<\/p>\n

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

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

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

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

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

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

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

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

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

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

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

Program to Print Reverse Pyramid of Numbers in C,C++, and Python<\/h2>\n