Rectify the error(s) so that the program accepts N integers and prints the integers until 10 encounters.
Note: The first integer is always not equal to 10.
Boundary Condition(s):
2 <= N <= 100
1 <= Each integer value <= 1015
Input Format:
The first line contains N.
The second line contains N integers separated by a space.
Output Format:
The first line contains the integers until 10 encounters separated by a space.
Example Input/Output 1:
Input:
5
45 56 32 10 98
Output:
45 56 32
Explanation:
Here N = 5.
In the 5 integers, the integers until 10 encounters are 45 56 32. So they are printed.
Example Input/Output 2:
Input:
6
123 454 10 354 65 32
Output:
123 454
Answers
Answered by
14
Answer:
Rectify the error(s) so that the program accepts N integers and prints the integers until 10 encounters.
Note: The first integer is always not
Similar questions
Chemistry,
2 months ago
English,
2 months ago
Social Sciences,
5 months ago
Chemistry,
5 months ago
Math,
11 months ago