Demonstration

Example of a loop

Do[Print[{i,i^2}],{i,1,10}]

Use a loop to add up a sum

sum=0
Do[sum+=i;Print[sum],{i,1,10}]
sum

Converting a fraction to a decimal:

N[15/23]