Skip to content

Commit 5d9a3e5

Browse files
authored
Add files via upload
1 parent cdcf040 commit 5d9a3e5

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import java.util.Scanner;
2+
public class Question2{
3+
public static void main(String[] args) {
4+
5+
6+
Scanner su=new Scanner(System.in);
7+
int s=su.nextInt();
8+
int min,arr[];
9+
arr=new int[s];
10+
for(int i=0;i<s;i++)
11+
arr[i]=su.nextInt();
12+
min=arr[0];
13+
for(int i=1;i<s;i++)
14+
{
15+
if(min>arr[i])
16+
min=arr[i];
17+
}
18+
System.out.print(min);
19+
}
20+
}
21+
22+

0 commit comments

Comments
 (0)