hollow rectangle using stars c/C++ program| 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-