Answer:
See Explaination
Step-by-step explanation:
clear all;
clc;
fprintf('Enter the pH value of the solution=');
pH=input('');
if pH == 7
fprintf('The solution is neutral.');
elseif pH >= 0 && pH < 7
fprintf('The solution is basic.');
elseif pH > 7 && pH <= 14
fprintf('The solution is acidic.');
else
fprintf('Error. The entered pH value is invalid.');
end