n=[A,B,C,E];
for n=input('Enter your answers:');
switch (n);
case 'D'; case 'd'; if n=='D'||n=='d' disp('wrong answer. Try again please'); fprintf('Your scored mark is zero(0)\n'); break; end if n=='A'||n=='a'&& n=='B'||n=='b'&& n=='C'||n=='c'&& n=='E'||n=='e'; disp('correct answers,congratulations!'); break; end end
end
Best Answer