Advertisement
TGBao2004

BAi2.PAS

Apr 25th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 0.30 KB | None | 0 0
  1. Var
  2.     N, i, maxScore : Longint;
  3.     A : Array[1..10000] Of Longint;
  4.  
  5. Begin
  6.     Assign(input, 'THI_HK2.DAT'); Reset(input);
  7.  
  8.     Readln(input, N);
  9.     For i := 1 to N do
  10.     Begin
  11.         Read(input, A[i]);
  12.         If A[i] > maxScore then
  13.             maxScore := A[i];
  14.     End;
  15.  
  16.     Write('Diem cao nhat trong lop: ', maxScore);
  17.  
  18.     Close(input);
  19.  
  20. End.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement