i am working on a logic by making diamonds and rectangle or triangle by using a single for loop. after working and thinking so much i am successfull to draw a rectangle or a diamond or a triangle with a single for loop. here is my code.
this code will creat a diamond shape. i want to creat a rectangle within this diamond. anybody here to guide me ? the work in first if condition will give me the ruslt