Unit 3 Guided Practice 2: Use a Loop and Call a Function

Billy11

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:

And here is the output:

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

Upload your .c file and a screen shot of your code output saved in a Word document including the path name directory at the top of the screen into the dropbox for grading. 

    • 7 years ago
    • 5
    Answer(2)

    Purchase the answer to view it

    • Usealoopandcallafunction.c
    • Usealoopandcallafunction.rtf

    Purchase the answer to view it

    NOT RATED
    • c-func-call.zip