{"id":12083,"date":"2021-09-30T14:30:02","date_gmt":"2021-09-30T09:00:02","guid":{"rendered":"https:\/\/python-programs.com\/?p=12083"},"modified":"2021-11-22T18:34:34","modified_gmt":"2021-11-22T13:04:34","slug":"python-program-to-print-mirrored-half-diamond-star-pattern","status":"publish","type":"post","link":"https:\/\/python-programs.com\/python-program-to-print-mirrored-half-diamond-star-pattern\/","title":{"rendered":"Python Program to Print Mirrored Half Diamond Star Pattern"},"content":{"rendered":"

Explore complete java concepts from the Java programming examples<\/a> and get ready to become a good programmer and crack the java software developer interview with ease.<\/p>\n

Given the number of rows of the diamond pattern, the task is to print the Mirrored Half diamond Pattern in C, C++, and Python.<\/p>\n

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

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

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

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

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

             *\r\n            **\r\n          ***\r\n         ****\r\n        *****\r\n      ******\r\n     *******\r\n   ********\r\n *********\r\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 =7\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       ++++\r\n          +++\r\n            ++\r\n              +<\/pre>\n

Program to Print Mirrored Half Diamond Star Pattern in C, C++, and Python<\/h2>\n

Below are the ways to print Mirrored Half Diamond Star Pattern in C, C++, and python.<\/p>\n