ogsaving = float( input( "Enter the value of the savings: " ) ) saving = ( "%.2f" % ogsaving ) years = 1 print( "Starting value:", saving ) for years in range( 1, 11 ) : interest = ogsaving * 0.05 ogsaving = ogsaving + interest print( "After", years, "years:", ( "%.2f" % ogsaving ) )