-->

10/10/20

hollow rectangle using stars C++ program| hollow rectangle pattern print c c++ program

hollow rectangle using stars c/C++ program| hollow rectangle pattern  print  c c++ program -

Print hollow rectangle using start as mentioned in image. 


hollow rectangle pattern  print  c c++ program

as clearly mentioned in the image you are given some length of rectangle and width of the rectangle.

Logic-

step 1-
print star = length of the rectangle when i(width iterator)==0 and i==length -1

step-2 
else print one star when j(length iterator) =0 and j =n-1


code implementation-


Advertiser

all right reserved @technicalkeeda.in. Powered by Blogger.