Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C-program only! Help please! 4. (12 points) Write a complete C program that will first read in an arbitrary number of integers (which it should

C-program only! Help please! image text in transcribed
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 : 2379110349935 Sample output

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

what are the specific environments amazon fresh competes

Answered: 1 week ago