clear clc tol = input('Masukan toleransi = '); x2 = input('Tebakan x2 = '); x1new = (7-x2)/2 x2new = (11-x1new)/3 while abs(x2-x2new)>tol x2 = x2new; x1new = (7-x2)/2 x2new = (11-x1new)/3 end