{"id":12284,"date":"2021-09-30T15:00:10","date_gmt":"2021-09-30T09:30:10","guid":{"rendered":"https:\/\/python-programs.com\/?p=12284"},"modified":"2021-11-22T18:34:30","modified_gmt":"2021-11-22T13:04:30","slug":"python-program-to-print-the-equilateral-triangle-pattern-of-star","status":"publish","type":"post","link":"https:\/\/python-programs.com\/python-program-to-print-the-equilateral-triangle-pattern-of-star\/","title":{"rendered":"Python Program to Print the Equilateral Triangle Pattern of Star"},"content":{"rendered":"

Are you wondering how to seek help from subject matter experts and learn the Java language? Go with these Basic Java Programming Examples<\/a> and try to code all of them on your own then check with the exact code provided by expert programmers.<\/p>\n

Given the number of rows, the task is to Print Equilateral triangle Pattern of Star in C, C++, and Python<\/p>\n

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

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

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

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

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

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

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

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

Given number of rows = 10\r\nGiven Character to print ='$'<\/pre>\n

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

                  $ \r\n                 $ $ \r\n                $ $ $ \r\n               $ $ $ $ \r\n              $ $ $ $ $ \r\n             $ $ $ $ $ $ \r\n            $ $ $ $ $ $ $ \r\n           $ $ $ $ $ $ $ $ \r\n          $ $ $ $ $ $ $ $ $ \r\n         $ $ $ $ $ $ $ $ $ $<\/pre>\n

Program to Print the Equilateral triangle Pattern of Star in C, C++, and Python<\/h2>\n

Below are the ways to Print the Equilateral triangle Pattern of Star in C, C++, and Python.<\/p>\n