Mô hình hình chữ nhật rỗng trong giải pháp hackerrank python
Trong Chương trình Python này, chúng ta sẽ thảo luận về cách viết chương trình để in Mô hình Ngôi sao Hình chữ nhật Rỗng. Trong mẫu này, số hàng và số cột khác nhau. Sau đó, Người dùng phải nhập hai giá trị, trong đó một giá trị sẽ được xác định là một số hàng và giá trị khác sẽ được coi là các cột của mẫu. Chúng ta có thể thấy trong mẫu này, tất cả các ngôi sao đều có mặt ở ranh giới của mẫu. Và lấp đầy khoảng trống bên trong ranh giới. Điều kiện “For Loop” và “If-Else” sẽ giúp in Mẫu Ngôi sao Hình chữ nhật Rỗng này
Chương trình python này tạo hoặc in mẫu hình chữ nhật rỗng được tạo thành từ các ngôi sao lên đến n dòngMã nguồn Python. Mẫu hình chữ nhật rỗng
đầu ra. Mẫu hình chữ nhật rỗngEnter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************ Viết một chương trình Python để in Mẫu ngôi sao hình chữ nhật rỗng bằng cách sử dụng Vòng lặp For và Vòng lặp While với một ví dụ Show Chương trình Python để in mẫu sao hình chữ nhật rỗng bằng For LoopChương trình Python này cho phép người dùng nhập tổng số hàng và cột cần thiết cho một hình chữ nhật. Tiếp theo, chúng tôi đã sử dụng Python Nested For Loop để lặp lại từng giá trị hàng và cột. Trong Vòng lặp For, chúng tôi đã sử dụng câu lệnh If Else. Nếu phần tử hàng hoặc cột là 0 hoặc lớn nhất – 1, thì Python sẽ in *; # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print() Chương trình Python để in các ngôi sao hình chữ nhật rỗng Ví dụ 2Chương trình Python này cho phép người dùng nhập ký tự của chính họ. Tiếp theo, nó in mẫu hình chữ nhật rỗng của ký tự do người dùng chỉ định # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) ch = input("Please Enter any Character : ") print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('%c' %ch, end = ' ') else: print(' ', end = ' ') print()
Chương trình Python để in các ngôi sao hình chữ nhật rỗng bằng vòng lặp WhileChương trình sao hình chữ nhật rỗng này giống như ví dụ đầu tiên. Tuy nhiên, chúng tôi đã thay thế Vòng lặp For bằng Vòng lặp While for (j = 1; j < = columns; j++)0 for (j = 1; j < = columns; j++)4 for (j = 1; j < = columns; j++)5 for (j = 1; j < = columns; j++)0 for (i = 1; i < = rows; i++)9 for (j = 1; j < = columns; j++)8 for (j = 1; j < = columns; j++)4 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************20 for (j = 1; j < = columns; j++)8 for (i = 1; i < = rows; i++)9 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************23 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************24 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************25 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************26 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************27 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************26 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************29____220 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()21 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************23 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()23 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************26 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************29____226 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()27 for (j = 1; j < = columns; j++)8 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()29 _______58____331 for (j = 1; j < = columns; j++)0 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()29
# Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()29
# Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) ch = input("Please Enter any Character : ") print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('%c' %ch, end = ' ') else: print(' ', end = ' ') print()35 for (i = 1; i < = rows; i++)5 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) ch = input("Please Enter any Character : ") print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('%c' %ch, end = ' ') else: print(' ', end = ' ') print()37 for (i = 1; i < = rows; i++)9 for (j = 1; j < = columns; j++)0 for (i = 1; i < = rows; i++)5 31for (j = 1; j < = columns; j++)0 33for (j = 1; j < = columns; j++)0 35 36# Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()29
38 39Cfor (j = 1; j < = columns; j++)710 for (j = 1; j < = columns; j++)711
for (i = 1; i < = rows; i++)2 for (i = 1; i < = rows; i++)3 for (i = 1; i < = rows; i++)4_______95 for (i = 1; i < = rows; i++)6 for (i = 1; i < = rows; i++)5 for (i = 1; i < = rows; i++)8 for (i = 1; i < = rows; i++)9 for (j = 1; j < = columns; j++)0 for (i = 1; i < = rows; i++)5 for (j = 1; j < = columns; j++)2 for (j = 1; j < = columns; j++)0 for (j = 1; j < = columns; j++)4 for (j = 1; j < = columns; j++)5 for (j = 1; j < = columns; j++)0 for (i = 1; i < = rows; i++)9 for (j = 1; j < = columns; j++)8 for (j = 1; j < = columns; j++)4 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************20 for (j = 1; j < = columns; j++)8 for (i = 1; i < = rows; i++)9 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************23 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************24 for (j = 1; j < = columns; j++)735 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************26 for (j = 1; j < = columns; j++)737 for (j = 1; j < = columns; j++)738 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()20 for (i = 1; i < = rows; i++)00 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************23 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()23 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************26 for (j = 1; j < = columns; j++)737 for (j = 1; j < = columns; j++)738 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()26 for (i = 1; i < = rows; i++)00 for (j = 1; j < = columns; j++)8 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()29 for (j = 1; j < = columns; j++)8 for (j = 1; j < = columns; j++)737____8738 for (i = 1; i < = rows; i++)13 for (i = 1; i < = rows; i++)14 for (j = 1; j < = columns; j++)0 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()29
# Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()29
for (i = 1; i < = rows; i++)18 for (i = 1; i < = rows; i++)5 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) ch = input("Please Enter any Character : ") print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('%c' %ch, end = ' ') else: print(' ', end = ' ') print()37 for (i = 1; i < = rows; i++)9 for (j = 1; j < = columns; j++)0 for (i = 1; i < = rows; i++)5 31for (j = 1; j < = columns; j++)0 33for (j = 1; j < = columns; j++)0 35 36# Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()29 Javafor (i = 1; i < = rows; i++)31 ________ 932 ________ 933
for (i = 1; i < = rows; i++)34 for (i = 1; i < = rows; i++)35 for (j = 1; j < = columns; j++)0 for (j = 1; j < = columns; j++)0 for (i = 1; i < = rows; i++)2 for (j = 1; j < = columns; j++)0_______940 for (i = 1; i < = rows; i++)3 for (i = 1; i < = rows; i++)4 for (i = 1; i < = rows; i++)5 for (i = 1; i < = rows; i++)6 for (i = 1; i < = rows; i++)5 for (i = 1; i < = rows; i++)8 for (j = 1; j < = columns; j++)0 for (i = 1; i < = rows; i++)9 for (j = 1; j < = columns; j++)8 for (i = 1; i < = rows; i++)5 for (j = 1; j < = columns; j++)2 for (j = 1; j < = columns; j++)8 for (j = 1; j < = columns; j++)4 for (i = 1; i < = rows; i++)54____955 for (i = 1; i < = rows; i++)56 for (j = 1; j < = columns; j++)8 for (i = 1; i < = rows; i++)9 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************23 for (j = 1; j < = columns; j++)4 for (i = 1; i < = rows; i++)61____955 for (i = 1; i < = rows; i++)63 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************23 for (i = 1; i < = rows; i++)9 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************26 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************24 for (i = 1; i < = rows; i++)68 for (i = 1; i < = rows; i++)55 for (i = 1; i < = rows; i++)70 for (i = 1; i < = rows; i++)71 for (i = 1; i < = rows; i++)72 for (i = 1; i < = rows; i++)55 for (i = 1; i < = rows; i++)74 for (i = 1; i < = rows; i++)71 for (i = 1; i < = rows; i++)76 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()20 for (i = 1; i < = rows; i++)00 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************26 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()23 for (i = 1; i < = rows; i++)71 for (i = 1; i < = rows; i++)76 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()26 for (i = 1; i < = rows; i++)00 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************23 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()29 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************23 for (i = 1; i < = rows; i++)88 for (j = 1; j < = columns; j++)8 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()29 for (i = 1; i < = rows; i++)91 for (j = 1; j < = columns; j++)0 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()29 for (i = 1; i < = rows; i++)91 for (j = 1; j < = columns; j++)0 for (i = 1; i < = rows; i++)18 for (j = 1; j < = columns; j++)0 for (i = 1; i < = rows; i++)98 for (i = 1; i < = rows; i++)40 for (i = 1; i < = rows; i++)3 for (j = 1; j < = columns; j++)01 for (j = 1; j < = columns; j++)0 for (i = 1; i < = rows; i++)9 for (j = 1; j < = columns; j++)8 for (i = 1; i < = rows; i++)5 for (j = 1; j < = columns; j++)06 for (j = 1; j < = columns; j++)07 for (j = 1; j < = columns; j++)08 for (j = 1; j < = columns; j++)09 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()27 _______58____433 for (j = 1; j < = columns; j++)0 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()29 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()29
for (j = 1; j < = columns; j++)16 Python3for (j = 1; j < = columns; j++)17
for (j = 1; j < = columns; j++)18 for (j = 1; j < = columns; j++)19 for (j = 1; j < = columns; j++)20 for (j = 1; j < = columns; j++)0 for (j = 1; j < = columns; j++)0 for (j = 1; j < = columns; j++)4 for (j = 1; j < = columns; j++)24 for (j = 1; j < = columns; j++)25 for (j = 1; j < = columns; j++)26 for (j = 1; j < = columns; j++)738 for (i = 1; i < = rows; i++)55 for (j = 1; j < = columns; j++)29 for (j = 1; j < = columns; j++)30 for (i = 1; i < = rows; i++)55 for (j = 1; j < = columns; j++)32 for (j = 1; j < = columns; j++)8 for (j = 1; j < = columns; j++)4 for (j = 1; j < = columns; j++)35 for (j = 1; j < = columns; j++)25 for (j = 1; j < = columns; j++)26 for (j = 1; j < = columns; j++)738 for (i = 1; i < = rows; i++)55 for (j = 1; j < = columns; j++)40 for (j = 1; j < = columns; j++)30 for (i = 1; i < = rows; i++)55 for (j = 1; j < = columns; j++)32 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************23 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************24 for (j = 1; j < = columns; j++)46 for (j = 1; j < = columns; j++)47 for (j = 1; j < = columns; j++)47 for (i = 1; i < = rows; i++)55 for (j = 1; j < = columns; j++)50 for (j = 1; j < = columns; j++)24 for (j = 1; j < = columns; j++)47 for (j = 1; j < = columns; j++)47 for (j = 1; j < = columns; j++)54 for (j = 1; j < = columns; j++)50 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************26 for (j = 1; j < = columns; j++)35_______547 for (j = 1; j < = columns; j++)47 for (i = 1; i < = rows; i++)55 for (j = 1; j < = columns; j++)50 for (j = 1; j < = columns; j++)35 for (j = 1; j < = columns; j++)47 for (j = 1; j < = columns; j++)47 for (j = 1; j < = columns; j++)65 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************26 for (j = 1; j < = columns; j++)67____8738 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()20 for (j = 1; j < = columns; j++)70 for (j = 1; j < = columns; j++)47 for (j = 1; j < = columns; j++)72 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************23 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()23 for (j = 1; j < = columns; j++)75 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************26 for (j = 1; j < = columns; j++)67 for (j = 1; j < = columns; j++)738 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()26 for (j = 1; j < = columns; j++)70 for (j = 1; j < = columns; j++)47 for (j = 1; j < = columns; j++)72 for (j = 1; j < = columns; j++)8 for (j = 1; j < = columns; j++)8____567 for (j = 1; j < = columns; j++)86
for (j = 1; j < = columns; j++)87 for (j = 1; j < = columns; j++)88 for (j = 1; j < = columns; j++)47 for (j = 1; j < = columns; j++)07 for (j = 1; j < = columns; j++)91____547 for (j = 1; j < = columns; j++)09 for (j = 1; j < = columns; j++)94
for (j = 1; j < = columns; j++)95 C#for (j = 1; j < = columns; j++)73 for (j = 1; j < = columns; j++)97 for (i = 1; i < = rows; i++)98 for (i = 1; i < = rows; i++)34 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************200 for (i = 1; i < = rows; i++)9
Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************202 for (i = 1; i < = rows; i++)2 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************202 for (i = 1; i < = rows; i++)40 for (i = 1; i < = rows; i++)3 for (i = 1; i < = rows; i++)4 for (i = 1; i < = rows; i++)5 for (i = 1; i < = rows; i++)6 for (i = 1; i < = rows; i++)5 for (i = 1; i < = rows; i++)8 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************202 for (i = 1; i < = rows; i++)9 for (j = 1; j < = columns; j++)0 for (i = 1; i < = rows; i++)5 for (j = 1; j < = columns; j++)2 for (j = 1; j < = columns; j++)0 for (j = 1; j < = columns; j++)4 for (j = 1; j < = columns; j++)5 for (j = 1; j < = columns; j++)0 for (i = 1; i < = rows; i++)9 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************222 for (j = 1; j < = columns; j++)4 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************20 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************222 for (i = 1; i < = rows; i++)9 for (j = 1; j < = columns; j++)8 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************24 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************25 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************23 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************231 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************232 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************233____220 for (i = 1; i < = rows; i++)00 for (j = 1; j < = columns; j++)8 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()23 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************232 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************233____226 for (i = 1; i < = rows; i++)00 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************222 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()29 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************222 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************245 for (j = 1; j < = columns; j++)0 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()29
Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************202 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()29
Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************202 for (i = 1; i < = rows; i++)18 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************202 for (i = 1; i < = rows; i++)98 for (i = 1; i < = rows; i++)40 for (i = 1; i < = rows; i++)3 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************256 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************202 for (i = 1; i < = rows; i++)9 for (j = 1; j < = columns; j++)0 for (i = 1; i < = rows; i++)5 31for (j = 1; j < = columns; j++)0 33Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************202 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()29 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()29
Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************267 PHPEnter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************268 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************269
for (i = 1; i < = rows; i++)2 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************271 for (i = 1; i < = rows; i++)4 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************273 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************274 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************275 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************276 for (i = 1; i < = rows; i++)9 for (j = 1; j < = columns; j++)0____1279____227 for (j = 1; j < = columns; j++)0____1282 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()27 for (j = 1; j < = columns; j++)0_______54 for (j = 1; j < = columns; j++)738 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************279 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************288 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************279 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************290 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************273 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()27 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************279 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************294 for (j = 1; j < = columns; j++)0 for (i = 1; i < = rows; i++)9 for (j = 1; j < = columns; j++)8 for (j = 1; j < = columns; j++)4 for (j = 1; j < = columns; j++)738 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************282 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************288 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************282 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************290 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************275 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()27 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************282 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************294 for (j = 1; j < = columns; j++)8 for (i = 1; i < = rows; i++)9 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************23 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************24 for (j = 1; j < = columns; j++)738 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************279 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()214 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************279 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()216 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************273 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()218 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************26 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************282 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()214 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************282 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()216 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************275 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()225 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************26 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()227____8738 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()20 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()230 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************23 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()23 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************26 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()227____8738 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()26 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()230 for (j = 1; j < = columns; j++)8 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()29 for (j = 1; j < = columns; j++)8 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()227____8738 for (i = 1; i < = rows; i++)13 for (i = 1; i < = rows; i++)14 for (j = 1; j < = columns; j++)0 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()29
# Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()29
for (j = 1; j < = columns; j++)0 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) ch = input("Please Enter any Character : ") print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('%c' %ch, end = ' ') else: print(' ', end = ' ') print()35 for (j = 1; j < = columns; j++)0 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()251 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()252 for (j = 1; j < = columns; j++)0 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()254 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()255 for (j = 1; j < = columns; j++)0 for (i = 1; i < = rows; i++)4 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()251____1274 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()254 for (i = 1; i < = rows; i++)14
# Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()262 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()263 Javascript# Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()264 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************222 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()266 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************222 for (i = 1; i < = rows; i++)2 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************222 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************271 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()271 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************222 for (i = 1; i < = rows; i++)9 ________ 58 ________ 2275 ________ 52 for (j = 1; j < = columns; j++)8 for (j = 1; j < = columns; j++)4 for (j = 1; j < = columns; j++)5 for (j = 1; j < = columns; j++)8 for (i = 1; i < = rows; i++)9 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************232 for (j = 1; j < = columns; j++)4 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************20 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************232 for (i = 1; i < = rows; i++)9 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************23 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************24 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()289 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()290 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()291____220 for (i = 1; i < = rows; i++)14 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************23 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()23 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************26 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()291____2298 for (i = 1; i < = rows; i++)14 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************232 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()29 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************232 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()291____3304 for (i = 1; i < = rows; i++)14 for (j = 1; j < = columns; j++)8 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()29 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************222 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()29
Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************222 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) ch = input("Please Enter any Character : ") print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('%c' %ch, end = ' ') else: print(' ', end = ' ') print()35 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************222 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()275 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) ch = input("Please Enter any Character : ") print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('%c' %ch, end = ' ') else: print(' ', end = ' ') print()314 _______58____3316 _______1222____433 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************222 _______1222____3321 _______50____3323 Đầu ra. Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************2 Độ phức tạp về thời gian. O(m * n), trong đó m và n đại diện cho các đầu vào đã cho. Mô hình ngôi sao vuông rỗng
# Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()2 Giải thích.
# Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) ch = input("Please Enter any Character : ") print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('%c' %ch, end = ' ') else: print(' ', end = ' ') print()3
Khuyến khích. Vui lòng thử cách tiếp cận của bạn trên {IDE} trước, trước khi chuyển sang giải pháp
C++# Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) ch = input("Please Enter any Character : ") print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('%c' %ch, end = ' ') else: print(' ', end = ' ') print()324 for (j = 1; j < = columns; j++)91 for (j = 1; j < = columns; j++)73 for (i = 1; i < = rows; i++)0 for (i = 1; i < = rows; i++)1
# Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) ch = input("Please Enter any Character : ") print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('%c' %ch, end = ' ') else: print(' ', end = ' ') print()329 for (i = 1; i < = rows; i++)3 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) ch = input("Please Enter any Character : ") print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('%c' %ch, end = ' ') else: print(' ', end = ' ') print()331 for (i = 1; i < = rows; i++)5 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) ch = input("Please Enter any Character : ") print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('%c' %ch, end = ' ') else: print(' ', end = ' ') print()333 for (i = 1; i < = rows; i++)9 for (j = 1; j < = columns; j++)0 for (i = 1; i < = rows; i++)5 for (j = 1; j < = columns; j++)2 for (j = 1; j < = columns; j++)0 for (j = 1; j < = columns; j++)0 for (j = 1; j < = columns; j++)4 for (j = 1; j < = columns; j++)5 for (j = 1; j < = columns; j++)0 for (i = 1; i < = rows; i++)9 for (j = 1; j < = columns; j++)8 for (j = 1; j < = columns; j++)4 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) ch = input("Please Enter any Character : ") print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('%c' %ch, end = ' ') else: print(' ', end = ' ') print()346 for (j = 1; j < = columns; j++)8 for (i = 1; i < = rows; i++)9 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************23 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************24 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) ch = input("Please Enter any Character : ") print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('%c' %ch, end = ' ') else: print(' ', end = ' ') print()351 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************26 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************29____220 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) ch = input("Please Enter any Character : ") print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('%c' %ch, end = ' ') else: print(' ', end = ' ') print()355 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************23 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()23 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************26 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************29____226 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) ch = input("Please Enter any Character : ") print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('%c' %ch, end = ' ') else: print(' ', end = ' ') print()355 for (j = 1; j < = columns; j++)8 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()29 for (j = 1; j < = columns; j++)8 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************29____913 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()27 for (j = 1; j < = columns; j++)0 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()29
# Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()29
# Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) ch = input("Please Enter any Character : ") print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('%c' %ch, end = ' ') else: print(' ', end = ' ') print()371 for (i = 1; i < = rows; i++)5 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) ch = input("Please Enter any Character : ") print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('%c' %ch, end = ' ') else: print(' ', end = ' ') print()37 for (i = 1; i < = rows; i++)9 for (j = 1; j < = columns; j++)0 for (i = 1; i < = rows; i++)5 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) ch = input("Please Enter any Character : ") print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('%c' %ch, end = ' ') else: print(' ', end = ' ') print()377 for (j = 1; j < = columns; j++)0 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) ch = input("Please Enter any Character : ") print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('%c' %ch, end = ' ') else: print(' ', end = ' ') print()379 for (j = 1; j < = columns; j++)0 35 36# Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()29
# Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) ch = input("Please Enter any Character : ") print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('%c' %ch, end = ' ') else: print(' ', end = ' ') print()384 C# Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) ch = input("Please Enter any Character : ") print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('%c' %ch, end = ' ') else: print(' ', end = ' ') print()385 for (j = 1; j < = columns; j++)711
# Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) ch = input("Please Enter any Character : ") print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('%c' %ch, end = ' ') else: print(' ', end = ' ') print()329 for (i = 1; i < = rows; i++)3 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) ch = input("Please Enter any Character : ") print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('%c' %ch, end = ' ') else: print(' ', end = ' ') print()331 for (i = 1; i < = rows; i++)5 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) ch = input("Please Enter any Character : ") print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('%c' %ch, end = ' ') else: print(' ', end = ' ') print()333 for (i = 1; i < = rows; i++)9 for (j = 1; j < = columns; j++)0 for (i = 1; i < = rows; i++)5 for (j = 1; j < = columns; j++)2 for (j = 1; j < = columns; j++)0 for (j = 1; j < = columns; j++)0 for (j = 1; j < = columns; j++)4 for (j = 1; j < = columns; j++)5 for (j = 1; j < = columns; j++)0 for (i = 1; i < = rows; i++)9 for (j = 1; j < = columns; j++)8 for (j = 1; j < = columns; j++)4 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) ch = input("Please Enter any Character : ") print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('%c' %ch, end = ' ') else: print(' ', end = ' ') print()346 for (j = 1; j < = columns; j++)8 for (i = 1; i < = rows; i++)9 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************23 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************24 309Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************26 for (j = 1; j < = columns; j++)737 for (j = 1; j < = columns; j++)738 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()20 for (i = 1; i < = rows; i++)00 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************23 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()23 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************26 for (j = 1; j < = columns; j++)737 for (j = 1; j < = columns; j++)738 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()26 for (i = 1; i < = rows; i++)00 for (j = 1; j < = columns; j++)8 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()29 for (j = 1; j < = columns; j++)8 for (j = 1; j < = columns; j++)737____8738 for (i = 1; i < = rows; i++)13 for (i = 1; i < = rows; i++)14 for (j = 1; j < = columns; j++)0 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()29
# Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()29
# Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) ch = input("Please Enter any Character : ") print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('%c' %ch, end = ' ') else: print(' ', end = ' ') print()371 for (i = 1; i < = rows; i++)5 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) ch = input("Please Enter any Character : ") print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('%c' %ch, end = ' ') else: print(' ', end = ' ') print()37 for (i = 1; i < = rows; i++)9 for (j = 1; j < = columns; j++)0 for (i = 1; i < = rows; i++)5 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) ch = input("Please Enter any Character : ") print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('%c' %ch, end = ' ') else: print(' ', end = ' ') print()377 for (j = 1; j < = columns; j++)0 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) ch = input("Please Enter any Character : ") print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('%c' %ch, end = ' ') else: print(' ', end = ' ') print()379 for (j = 1; j < = columns; j++)0 35 36# Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()29 Java 345________ 932 ________ 933
for (i = 1; i < = rows; i++)34 for (i = 1; i < = rows; i++)35 for (j = 1; j < = columns; j++)0 for (j = 1; j < = columns; j++)0 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) ch = input("Please Enter any Character : ") print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('%c' %ch, end = ' ') else: print(' ', end = ' ') print()329 for (j = 1; j < = columns; j++)0 for (i = 1; i < = rows; i++)40 for (i = 1; i < = rows; i++)3 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) ch = input("Please Enter any Character : ") print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('%c' %ch, end = ' ') else: print(' ', end = ' ') print()331 for (i = 1; i < = rows; i++)5 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) ch = input("Please Enter any Character : ") print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('%c' %ch, end = ' ') else: print(' ', end = ' ') print()333 for (j = 1; j < = columns; j++)0 for (i = 1; i < = rows; i++)9 for (j = 1; j < = columns; j++)8 for (i = 1; i < = rows; i++)5 for (j = 1; j < = columns; j++)2 364for (j = 1; j < = columns; j++)8 for (j = 1; j < = columns; j++)4 for (i = 1; i < = rows; i++)54____955 for (i = 1; i < = rows; i++)56 for (j = 1; j < = columns; j++)8 for (i = 1; i < = rows; i++)9 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************23 for (j = 1; j < = columns; j++)4 for (i = 1; i < = rows; i++)61____955 376Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************23 for (i = 1; i < = rows; i++)9 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************26 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************24 for (i = 1; i < = rows; i++)68 for (i = 1; i < = rows; i++)55 for (i = 1; i < = rows; i++)70 for (i = 1; i < = rows; i++)71______972____955 387for (i = 1; i < = rows; i++)71 for (i = 1; i < = rows; i++)76 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()20 for (i = 1; i < = rows; i++)00 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************26 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()23 for (i = 1; i < = rows; i++)71 for (i = 1; i < = rows; i++)76 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()26 for (i = 1; i < = rows; i++)00 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************23 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()29 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************23 for (i = 1; i < = rows; i++)88 for (j = 1; j < = columns; j++)8 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()29 for (i = 1; i < = rows; i++)91 for (j = 1; j < = columns; j++)0 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()29 for (i = 1; i < = rows; i++)91 _______50____3371 for (j = 1; j < = columns; j++)0 for (i = 1; i < = rows; i++)98 for (i = 1; i < = rows; i++)40 for (i = 1; i < = rows; i++)3 for (j = 1; j < = columns; j++)01 for (j = 1; j < = columns; j++)0 for (i = 1; i < = rows; i++)9 for (j = 1; j < = columns; j++)8 for (i = 1; i < = rows; i++)5 for (j = 1; j < = columns; j++)06 for (j = 1; j < = columns; j++)7120 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()27 _______58____3379 for (j = 1; j < = columns; j++)0 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()29 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()29
for (j = 1; j < = columns; j++)16 Python3for (j = 1; j < = columns; j++)7128
for (j = 1; j < = columns; j++)7129 for (j = 1; j < = columns; j++)19 for (j = 1; j < = columns; j++)7131 for (j = 1; j < = columns; j++)0 for (j = 1; j < = columns; j++)0 for (j = 1; j < = columns; j++)4 for (j = 1; j < = columns; j++)24 for (j = 1; j < = columns; j++)25 for (j = 1; j < = columns; j++)26 for (j = 1; j < = columns; j++)738 for (i = 1; i < = rows; i++)55 for (j = 1; j < = columns; j++)29 for (j = 1; j < = columns; j++)30 for (i = 1; i < = rows; i++)55 for (j = 1; j < = columns; j++)32 for (j = 1; j < = columns; j++)8 for (j = 1; j < = columns; j++)4 for (j = 1; j < = columns; j++)35 for (j = 1; j < = columns; j++)25 for (j = 1; j < = columns; j++)26 for (j = 1; j < = columns; j++)738 for (i = 1; i < = rows; i++)55 for (j = 1; j < = columns; j++)29 for (j = 1; j < = columns; j++)30 for (i = 1; i < = rows; i++)55 for (j = 1; j < = columns; j++)32 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************23 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************24 for (j = 1; j < = columns; j++)46 for (j = 1; j < = columns; j++)47 for (j = 1; j < = columns; j++)47 for (i = 1; i < = rows; i++)55 for (j = 1; j < = columns; j++)50 for (j = 1; j < = columns; j++)24 for (j = 1; j < = columns; j++)47 for (j = 1; j < = columns; j++)47 for (j = 1; j < = columns; j++)54 for (j = 1; j < = columns; j++)50 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************26 for (j = 1; j < = columns; j++)35_______547 for (j = 1; j < = columns; j++)47 for (i = 1; i < = rows; i++)55 for (j = 1; j < = columns; j++)50 for (j = 1; j < = columns; j++)35 for (j = 1; j < = columns; j++)47 for (j = 1; j < = columns; j++)47 for (j = 1; j < = columns; j++)7176 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************26 for (j = 1; j < = columns; j++)67 for (j = 1; j < = columns; j++)738 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()20 for (j = 1; j < = columns; j++)70 for (j = 1; j < = columns; j++)47 for (j = 1; j < = columns; j++)72 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************23 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()23 for (j = 1; j < = columns; j++)75 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************26 for (j = 1; j < = columns; j++)67 for (j = 1; j < = columns; j++)738 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()26 for (j = 1; j < = columns; j++)70 for (j = 1; j < = columns; j++)47 for (j = 1; j < = columns; j++)72 for (j = 1; j < = columns; j++)8 for (j = 1; j < = columns; j++)8____567 for (j = 1; j < = columns; j++)86 for (j = 1; j < = columns; j++)8 for (j = 1; j < = columns; j++)8 for (j = 1; j < = columns; j++)9100 for (j = 1; j < = columns; j++)9101 ________ 588 ________ 547 ________ 87120 for (j = 1; j < = columns; j++)9105
for (j = 1; j < = columns; j++)95 C#for (j = 1; j < = columns; j++)9107 for (j = 1; j < = columns; j++)9108 for (j = 1; j < = columns; j++)73 for (j = 1; j < = columns; j++)97
for (i = 1; i < = rows; i++)34 for (i = 1; i < = rows; i++)35 for (j = 1; j < = columns; j++)0 for (j = 1; j < = columns; j++)0____89115 for (j = 1; j < = columns; j++)0____89117 for (j = 1; j < = columns; j++)0_______940 for (i = 1; i < = rows; i++)3 for (j = 1; j < = columns; j++)9121 for (i = 1; i < = rows; i++)5 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) ch = input("Please Enter any Character : ") print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('%c' %ch, end = ' ') else: print(' ', end = ' ') print()333 for (j = 1; j < = columns; j++)0 for (i = 1; i < = rows; i++)9 for (j = 1; j < = columns; j++)8 for (i = 1; i < = rows; i++)5 for (j = 1; j < = columns; j++)2 for (j = 1; j < = columns; j++)8 for (j = 1; j < = columns; j++)4 for (j = 1; j < = columns; j++)5 for (j = 1; j < = columns; j++)8 for (i = 1; i < = rows; i++)9 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************23 for (j = 1; j < = columns; j++)4 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) ch = input("Please Enter any Character : ") print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('%c' %ch, end = ' ') else: print(' ', end = ' ') print()346 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************23 for (i = 1; i < = rows; i++)9 ________ 126 ________ 124 ________ 125 for (i = 1; i < = rows; i++)71____89143 for (i = 1; i < = rows; i++)71____89145 for (i = 1; i < = rows; i++)71 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************233____220 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()230 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************26 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()23 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************26 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************233____226 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()230 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************23 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()29 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************23____1245 for (j = 1; j < = columns; j++)8 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()29 for (j = 1; j < = columns; j++)0 for (j = 1; j < = columns; j++)0 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()29 for (j = 1; j < = columns; j++)0 for (j = 1; j < = columns; j++)0____89167 for (j = 1; j < = columns; j++)0 for (i = 1; i < = rows; i++)98 for (i = 1; i < = rows; i++)40 for (i = 1; i < = rows; i++)3 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************256 for (j = 1; j < = columns; j++)0 for (i = 1; i < = rows; i++)9 for (j = 1; j < = columns; j++)8 for (i = 1; i < = rows; i++)5 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) ch = input("Please Enter any Character : ") print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('%c' %ch, end = ' ') else: print(' ', end = ' ') print()377 for (j = 1; j < = columns; j++)8____89179 for (j = 1; j < = columns; j++)0 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()29 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()29
for (j = 1; j < = columns; j++)9183 PHPEnter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************268 for (j = 1; j < = columns; j++)9185 for (j = 1; j < = columns; j++)9108
for (j = 1; j < = columns; j++)9115 for (j = 1; j < = columns; j++)9117 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************271 for (j = 1; j < = columns; j++)9121 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************273 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************276 for (i = 1; i < = rows; i++)9 for (j = 1; j < = columns; j++)0____1279____227 for (j = 1; j < = columns; j++)0____1282 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()27 for (j = 1; j < = columns; j++)0_______54____8738 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************279 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************288 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************279 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************290 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************273 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()27 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************279 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************294 for (j = 1; j < = columns; j++)0 for (i = 1; i < = rows; i++)9 for (j = 1; j < = columns; j++)8 for (j = 1; j < = columns; j++)4 for (j = 1; j < = columns; j++)738 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************282 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************288 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************282 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************290 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************273 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()27 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************282 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************294 for (j = 1; j < = columns; j++)8 for (i = 1; i < = rows; i++)9 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************23 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************24 for (j = 1; j < = columns; j++)738 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************279 for (j = 1; j < = columns; j++)7330 for (j = 1; j < = columns; j++)50 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************279 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()216 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************273 for (j = 1; j < = columns; j++)50 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************282 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()214 for (j = 1; j < = columns; j++)7338 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************282 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()216 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************273 for (j = 1; j < = columns; j++)50 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************279 # Python Program to Print Hollow Rectangle Star Pattern rows = int(input("Please Enter the Total Number of Rows : ")) columns = int(input("Please Enter the Total Number of Columns : ")) print("Hollow Rectangle Star Pattern") for i in range(rows): for j in range(columns): if(i == 0 or i == rows - 1 or j == 0 or j == columns - 1): print('*', end = ' ') else: print(' ', end = ' ') print()216 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************282 for (j = 1; j < = columns; j++)50 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************282 for (j = 1; j < = columns; j++)7348 Enter number of rows: 4 Enter number of columns: 12 Hollow rectangular pattern is: ************ * * * * ************273 for (j = 1; j < = columns; j++)7350 |