Write a program that finds the smallest of several integers. Assume that the first input value specifies the number of input integer.
Input Specification:
Input the number of values remaining(N) at the first line.
Input N values in the second line. Separating by a space.
Output Specification:
For each test case, print in a line the value of the smallest.
Sample Input:
5
17 25 11 3 6
Sample Output:
3
Sample Input:
3
10 5 102
Sample Output:
5
Answers
Answered by
2
Answer:
The first line of the input consists of an integer n . ... Given an array of integers, find the sum of its elements. ... The second line contains n space-separated integers describing the values ...
Answered by
0
Concept:
The Python list method min() returns the list elements with the smallest value. A list is a set of values that are sorted and contained in square brackets []. Lists include items, which are values that may be retrieved using their respective indexes.
Program:
Find the smallest number from the given number set.
Solution:
Similar questions