Write a function called under_age that takes two positive integer scalar arguments: age that represents someone’s age, and limit that represents an age limit. The function returns true if the person is younger than the age limit. If the second arg
function too_young = under_age(age,limit)
limit = 21
if age <= limit
too_young = true;
elseif age >= limit
too_young = false;
else
fprintf(‘invalidn’)
endfunction too_young = under_age(age,limit)
limit = 21
if age <= limit
too_young = true;
elseif age >= limit
too_young = false;
else
fprintf(‘invalidn’)
end function too_young = under_age(age,limit)
limit = 21
if age <= limit
too_young = true;
elseif age >= limit
too_young = false;
else
fprintf(‘invalidn’)
end homework, age, soft-lock, please no more answers MATLAB Answers — New Questions