clear allclca=round(0+9*rand(10,1));for n=a if mod(n,2)==0 disp(n),disp('is even') elseif n==0 disp(n),disp('is 0') else disp(n),disp('is odd') endend
the program must check which of the numbers of array are even or odd?but it doesnt work correctly…
Best Answer