c-thumb

C program to draw Square or Triangle shapes using multiple choice

Here is another C program to draw a Square or Triangle shape based on the user’s choice. This program will ask the user whether he wants to draw a Square or a Rectable and based on the option he selected, the program would print the pattern.

C Program:

Based on user choice, The program calls the drawSquare or the drawTriangle function and then it draws the shapes using ASCII characters.

This program can be used in schools /colleges. Hope this helped you.

Related Posts

Leave a Reply