
% This script prompts the user to enter two numbers and computes
% their root-mean-square (RMS) value

x = input('Enter a value for x: ');
y = input('Enter a value for y: ');

rms = sqrt((x^2 + y^2) / 2);

fprintf('The RMS value is %.2f\n', rms);

