Computer Science, asked by sandhyakhot8554, 6 hours ago

Minimum Number
Write a program to find the minimum number in a list of given N integers.
+20
Input format
+20
First line contain number of integer N.
Second line contains Nnumbers separated by single space.
Output format
Print the minimum number in the N given integers.
- 20.0
Input Constraints
1SN < 10
13a; < 100
Sample input 1
Copy
Sample output 1​

Answers

Answered by sohankumar38
0

Answer:

First, find the smallest number in the given list.

Then add that current minimum element to another list that will contain the N minimum elements.

Remove the current minimum element from the given list.

Continue with the same process until the N minimum elements are found.

Below is the implementation of the above approach:

Similar questions