Friday, February 1, 2019

URI 1174:: SOLUTION

URI Online Judge | 1174

Array Selection I

In this problem, your task is to read an array A[100]. At the end, print all array positions that store a number less or equal to 10 and the number stored in that position.

Input

The input contains 100 numbers. Each number can be integer, floating-point number, positive or negative.

Output

For each number of the array that is equal to 10 or less, print "A [i] = x", where i is the position of the array and x is the number stored in the position, with one digit after the decimal point.
Input SampleOutput Sample
0
-5
63
-8.5
...
A[0] = 0.0
A[1] = -5.0
A[3] = -8.5
...



[WAIT]
     First of all, think yourself that you have tried enough for the problem. If you did not please read the program once. REMEMBER one thing, just believe in yourself.....YOU CAN.....YOU KNOW....


See the ANSWER here...
                                                                  

No comments:

Post a Comment