USING NDSOLVE IN A DO LOOP

In the Do loop below, the iterator is given in the form {i,imin,imax} and each solution is labelled by sol[i] which allows it to be used in the replacement rule. The Print function is used to print out the required values.

Do[
eq = f'[x] - i; 
sol[i] = 
        NDSolve[{eq == 0, f[0] == 0.0}, {f}, {x, 0, 
            1}]; 
Print[
        First[Evaluate[f[1] /. sol[i]]]], 
{i, 1, 
        5}]

The solutions from the Do loop are now available for further use:

Table[sol[i], {i, 1, 5}]

We can define a function corresponding to any solution using the corresponding sol[i]:

f4[x_] = f[x] /. sol[4][[1]]

f4[0.8]

Finally, the values from  the Do loop can be printed out in the form of a table as follows:

n = {}