TOPIC

Compilation Error ?

Sephiroth asked 6 months ago

Program Pzim ;

var

codigo,quantidade: integer;

Begin

readln(codigo);

readln(quantidade);

case codigo of

1: writeln('Total: R$ ',quantidade*4:5:2);

2: writeln('Total: R$ ',quantidade*4.50:5:2);

3: writeln('Total: R$ ',quantidade*5:5:2);

4: writeln('Total: R$ ',quantidade*2:5:2);

5: writeln('Total: R$ ',quantidade*1.50:5:2);

end;

End.

This topic has not been answered yet. Be the first!

Remember not post solutions. Your post may be reviewed by our moderators.