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

Want to excel in java coding? Practice with these Java Programs examples with output<\/a> and write any kind of easy or difficult programs in the java language<\/p>\n

Given the number of rows of the rhombus, the task is to print the Rhombus 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 rhombus =19<\/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  *******************\r\n *******************\r\n*******************<\/pre>\n

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

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

given number of rows of rhombus =9\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---------<\/pre>\n

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

Below are the ways to print the Rhombus Star Pattern in C, C++, and Python.<\/p>\n