Click here to Skip to main content
15,868,016 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Write a program that fills an array from user input then find the
following
• Minimum and maximum elements
• Sum of elements
• Average of elements

What I have tried:

im supposed to use functions so like am i supposed to do two functions or three ?
Posted
Updated 21-Jan-23 13:21pm

If the exercise is about writing functions (note the plural in your question) then I'd suggest writing four functions (plus main) - one for each separate purpose in the assignment.
 
Share this answer
 
We won't do your homework for you.
But we will help you if you get stuck or have a question about the code you've wrote but you have to make the effort.
 
Share this answer
 
When it comes to using functions, you could either write up to four functions for each individual question. One could also get two results each with one run and then get by with two functions.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900