Adapted by Neilor Tonin, URI Brazil
Read a number X. Put this X at the first position of an array N . In each subsequent position (1 up to 99) put half of the number inserted at the previous position, according to the example below. Print all the vector N.
The input contains a double precision number with four decimal places.
For each position of the array N print "N[i] = Y", where i is the array position and Y is the number stored in that position. Each number of N[...] must be printed with 4 digits after the decimal point.
|Input Sample||Output Sample|
N = 200.0000