Loop and call function

profileyoyu123

 

The following program uses a loop and calls a function called  firstFunction() five times, each time passing an argument that is the  value of the counter. Each time it calls the function, a new message is  printed. Then firstFunction() calls secondFunction(), without arguments.  When control returns to main(), main() calls thirdFunction(). Again, we  prototype both functions.

Here's the Flowchart:

And here is the code:

U3_GP2_Code_Update.PNG

And here is the output:

Submission Instructions

Now, type the code into your compiler. (No flowchart this time)

Upload your .c file and a screenshot of your code output saved in a Word document

  • 7 years ago
  • 3
Answer(1)

Purchase the answer to view it

blurred-text
  • attachment
    Usealoopandcallafunction.zip