
age = input('Please enter your age: ');

if (age >= 18)
    fprintf('You can watch an R-rated movie!\n');
else
    fprintf('You should watch Cars 2...\n');
end
