#B2057. Find Maximum Exam Score
Find Maximum Exam Score
Find Maximum Exam Score
Teacher Sun has just finished grading the midterm exam for the course "Introduction to Computing". With many students taking the exam, he decided to let the computer handle the tedious task of finding out the highest score achieved. Your task is to help Teacher Sun by writing a program that finds the maximum score from the provided list of exam scores.
inputFormat
The input begins with an integer n
(n ≥ 1) representing the number of students. The second line contains n
integers (each separated by spaces) representing the scores of the exam.
For example:
5 70 85 90 75 80
outputFormat
Output a single integer which is the maximum exam score.
sample
5
70 85 90 75 80
90