Computer Science, asked by kazinasheehamoonsaat, 5 hours ago

pls any1 tell what will be the output of the following program
LET ENDVALUE=5
LET COUNT=1
DO WHILE COUNT<=ENDVALUE
PRINT"Hello"
LET COUNT= COUNT +1
LOOP
END​

Answers

Answered by rudransh912010
0

Answer:

The output of this program is 5 7, because the first time bruce is printed, his value is 5, and the second time, his value is 7. The comma at the end of the first print statement suppresses the newline after the output, which is why both outputs appear on the same line.

Here is what multiple assignment looks like in a state diagram:

Multiple assignment

With multiple assignment it is especially important to distinguish between an assignment operation and a statement of equality. Because Python uses the equal sign (=) for assignment, it is tempting to interpret a statement like a = b as a statement of equality. It is not!

Similar questions