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

Enhancing programming skills is very important no matter what language you have chosen. So, practice frequently with these simple java programs<\/a> examples and excel in coding the complex logic.<\/p>\n

Given the length, breadth of the rectangle the task is to print the rectangle star pattern in C, C++, and Python.<\/p>\n

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

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

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

given length of rectangle =8\r\ngiven breadth of rectangle =29<\/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 length of rectangle =19\r\ngiven breadth of rectangle =5<\/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

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

Below are the ways to print the rectangle star pattern in C, C++, and Python.<\/p>\n