{"id":11316,"date":"2021-09-30T14:30:37","date_gmt":"2021-09-30T09:00:37","guid":{"rendered":"https:\/\/python-programs.com\/?p=11316"},"modified":"2021-11-22T18:34:31","modified_gmt":"2021-11-22T13:04:31","slug":"python-program-to-print-inverted-right-triangle-of-numbers","status":"publish","type":"post","link":"https:\/\/python-programs.com\/python-program-to-print-inverted-right-triangle-of-numbers\/","title":{"rendered":"Python Program to Print Inverted Right Triangle of Numbers"},"content":{"rendered":"

Beginners and experienced programmers can rely on these Best Java Programs Examples<\/a> and code various basic and complex logics in the Java programming language with ease.<\/p>\n

Given the number of rows of the Triangle, the task is to Print an Inverted Right Triangle 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 of the Inverted Right Triangle Pattern =13<\/pre>\n

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

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

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

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

given number of rows of the Inverted Right Triangle Pattern =8<\/pre>\n

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

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

Program to Print an Inverted Right Triangle of Numbers in C, C++, and Python<\/h2>\n

Below are the ways to Print an Inverted Right Triangle of Numbers in C, C++, and Python.<\/p>\n