write a program which fills a 10 element array using a for loop with numbers 90,80,70 etc.
write a function to return the maxi value of the numbers in the array.
write a function to return the average value of the numbers in the array.
BRICEK
0
Newbie Poster
Recommended Answers
Jump to Postint main(void) { TryYourself(); if(ProblemArise()) { while(NotWorking()) { PostYourCode(); AskForHelp(); TrySuggestion(); } } cout << "Wow, not it works!"; return EXIT_SUCCESS; }
Or, if desperate, start here:
#include <iostream> using std::cout; using std::endl; void InputArray(int *myarray); int GetMax(int *myarray); int GetAverage(int *myarray); int main(void) …
All 2 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.