forked from pikachu-17/java-projects
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpplqa.java
More file actions
29 lines (26 loc) · 683 Bytes
/
pplqa.java
File metadata and controls
29 lines (26 loc) · 683 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import java.util.*;
public class studnerts
{
public static void main()
{
Scanner sc=new Scanner(System.in);
int n=50;
int numbers[]=new int[50];
System.out.println("Enter 50 values");
for(int i=0;i<50;i++)
{
numbers[i]=sc.nextInt();
}
int max=numbers[0];
int min=numbers[0];
for(int i=0;i<50;i++)
{
if(numbers[i]>max)
max=number[i];
else if(numbers[i]<min)
min=numbers[i];
}
System.out.println("highest scores"+max);
System.out.println("minimum scores"+min);
}
}