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

Have you mastered basic programming topics of java and looking forward to mastering advanced topics in a java programming language? Go with these ultimate Advanced java programs examples with output<\/a> & achieve your goal in improving java coding skills.<\/p>\n

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

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

*******\r\n*      *\r\n*     *\r\n*    *\r\n*   *\r\n* *\r\n*<\/pre>\n

 <\/p>\n

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

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

Given number of rows of the Hollow Inverted Right Triangle Pattern =9\r\nGiven character to print ='^'<\/pre>\n

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

^^^^^^^^^\r\n^\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0^\r\n^\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0^\r\n^\u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0^\r\n^\u00a0 \u00a0 \u00a0 \u00a0 ^\r\n^\u00a0 \u00a0 \u00a0 ^\r\n^\u00a0 \u00a0 ^\r\n^ ^\r\n^<\/pre>\n

Program to Print Hollow Inverted Right Triangle Star Pattern in C, C++, and Python<\/h2>\n

Below are the ways to print a Hollow Inverted Right Triangle Star Pattern in C, C++, and Python.<\/p>\n