clear N = input('Give numerator: '); D = input('Give denominator: '); if D==0 'Sorry, cannot divide by zero' else ratio = N/D end