Create a program that creates the following shapes using for loops and while loo
ID: 3542408 • Letter: C
Question
Create a program that creates the following shapes using for loops and while loop.
1.) Diamond - has 1 input as size (whole numbers only), char data type of 'D' will trigger the diamond
2.) Square - has 1 input as size (whole numbers only), char data type of 'S' will trigger the square
3.) Triangle - has 2 input as height and width(whole numbers only), char data type of 'T' will trigger the triangle
NOTES:
1.) #include <string> or #include <string.h> gets no points, if found in the program AT ALL.
2.) does not compile gets no points.
3.) Not using the input as the program arguments gets no points.
Explanation / Answer
Your question really unclear. Kindly clarify the following poinnts:
1. Which language is the program supposed to be written in? C or C++? or maybe c#?
2. HOw is the ouput supposed to be drawn? Onto the console window or a graphic window?
3. what exactly is mean by the statement "char data type of 'D' will trigger the diamond" ?
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.