Hey guys... I keep getting an error(Error 26: Type Mismatch) in line 19(Until num='';) and I don't know how to fix it... Can you guys please assist me.....Thanks....
program sequence;
uses wincrt;
var num,count_zero,count_non_zero:integer;
Begin
count_non_zero:=0;
Repeat
writeln('Enter a number');
readln(num);
IF num=0 then
count_zero:=count_zero+1
Else
count_non_zero:=count_non_zero+1;
writeln('Non Zero Count: ',count_non_zero);
writeln('Zero count: ',count_zero);
Until num='';
End.