149k views
5 votes
11. Find the output of the following programs:

CLS
X= 7
FOR I = 1 to 10
PRINT X
IF X MOD 2 = 0 THEN
X= X/2
ELSE
X=X* 3+1
END IF
Next I
END​

1 Answer

5 votes

Answer:

See picture.

Step-by-step explanation:

Ran it on repl it.

11. Find the output of the following programs: CLS X= 7 FOR I = 1 to 10 PRINT X IF-example-1
User Winston Kotzan
by
5.8k points