Thread: marks
View Single Post
Old 03-07-2003, 12:45 AM   PM User | #2
Jason
Regular Coder

 
Join Date: Feb 2003
Location: California
Posts: 925
Thanks: 0
Thanked 0 Times in 0 Posts
Jason is an unknown quantity at this point
what you need to do is get the input from the user and put it in to the array of integers and then use a loop to go through and find the highest, lowest, and total. So set higher to 0 then in your loop use
if (marks[m] > higher) higher = marks[m]
same for lower where lower is intially set to the max size of an integer to start.
if (marks[m] < lower) lower = marks[m]


Jason
Jason is offline   Reply With Quote