Can someone please help me with this?
(BTW it is a program that I had to create for my computer programing class) I got an error in the program can you guys tell how to fix it?

Can someone please help me with this BTW it is a program that I had to create for my computer programing class I got an error in the program can you guys tell h class=

Respuesta :

tonb

Answer:

Fix the assignmentin 14 and 21 as suggested in the comments above. Use the := assignment operator.

Explanation:

The assignment operation in pascal is :=

So to give x the value 5, you'd write x := 5

In your program, you're assigning a value to compx, so fix it as

compx := Random(20)+1;