Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

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 .

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote