how many students got a higher mark on the exam than on test #1 in matlab
main.m
% Assuming marks are stored in two arrays, examMarks and test1MarksexamMarks = [80, 90, 75, 85, 95];
test1Marks = [70, 85, 68, 80, 90];
higherMarksCount = sum(examMarks > test1Marks);
disp(['Number of students who got a higher mark on the exam than on test #1: ', num2str(higherMarksCount)]);