Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please help me write this program in CodeBlock C, thankiu: 4. (12 points) Write a complete C program that will first read in an arbitrary
Please help me write this program in CodeBlock C, thankiu:
4. (12 points) Write a complete C program that will first read in an arbitrary number of integers (which it should not do anything with) until it encounters the integer -99. Assume it is guaranteed to encounter 2 the integer -99. Following this, it will definitely encounter (and hence, it will read in two integers, a width W, and a height H (you do NOT need to prompt for these). The program is expected to then draw a parallelogram, but draw it upside down. So, given width W and height H, the program should print W stars on each of H lines, in such as a manner that the first line should have H - 1 blanks before the stars, and on following lines, the number of blanks should decrease by one. Assume all input is correct. Remember: it may help you to assume that you do NOT need to prompt for anything, and you should make the program ignore the integers (if any) before the integer -99. Sample input: 2 3 7 91 103 4 -99 3 5 Sample output: ***** *** ***Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started