import java.io.*; class hw08 { public static void main(String args[]) throws IOException { int i, n, max; String str; int a[] = new int [100]; BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
System.out.print("データ数 : ");
n = Integer.parseInt(str);
for (i = 0; i < n; i++) { System.out.print("数値 : "); str = br.readLine(); a[i] = Integer.parseInt(str); } max = a[0]; for(i = 0; i< n; i++){ if(max < a[i]){ max = a[i]; }