Write a C code that have three functions: first function gets 10 integers from u
ID: 3529552 • Letter: W
Question
Write a C code that have three functions: first function gets 10 integers from users and stores into an array, second function finds and returns the largest number in that array third function prints out the values in the array. In main, test it by calling first and second functions then calling third function to print out the largest element.
Pseudo-code of finding the largest integer:
procedure max(a1, a2, ..., an: integers) //this is not a C syntax, you have to use C syntax!
MaxSoFar := a1
for i := 2 to n
begin
if ai > MaxSoFar then MaxSoFar := ai
end
{ MaxSoFar is the largest number in this sequence }
Don't use C++
Explanation / Answer
http://pastebin.com/MSEKKEaw
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.