Cost of the talk
Let telephone tariffs such a: first minute
of the talk costs 2 rub., but each following - 1.5
rub. Define, how much costs the talk from 1,2,3...N
minutes. N is entered with keyboards. If N≤0, that bring on screen
message 0.
Input data
The
Integer number N≤100.
Output data
Each number (cost determined amount of the
minutes) remove in separate line accurate to one tenth
or 0.
Example input data
8
Example output data
2,0
3,5
5,0
6,5
8,0
9,5
11,0
12,5
The Author: Smirnova A.M.