clear; clc;

n = input("Enter n >= 0? ");
try
    factorial(n)
catch
    disp("Not nonnegative integer.");
end
disp("End of program.");