143k views
0 votes
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-example-1

1 Answer

5 votes

Answer:

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

Step-by-step 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;

User Rpadovani
by
7.6k points