What\'s wrong with my code? why it always says syntax error for line 6 \" : \" a
ID: 645311 • Letter: W
Question
What's wrong with my code? why it always says syntax error for line 6 " : " and 12 "val" and 12 ")" Can someone help me to figure that out?
program gimmenum;
#include("stdlib.hhf");
static
i: int16 :=0;
j: int16 :=0;
val: int16 :=0;
temp: int16 :=0;
t: int16 :=0;
begin gimmenum;
stdout.put("Gimme a starting value: ");
stdin.get(val);
mov(val,temp);
sub(1,temp);
for(mov(0, i); i < 4; add(1, i)) do
for(mov(0, j); j < 4; add(1, j)) do
mov(3, t);
sub(j, t);
if(i = j || i = t) then
stdout.put(val, "");
else
stdout.put(temp, "");
sub(1, temp);
endif;
endfor;
stdout.put("", pl);
endfor;
end gimmenum;
Explanation / Answer
According to this programme there in nothing wrong in the programme please do one thing if it is showing same error again, please reinstall the compiler .
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.