output of CLS
Num = 5
FOR I = 1 TO 7
PRINT Num
IF Num MOD 2 = 1 THEN
Num = (Num * 3) + 1
ELSE
Num = Num/2
END IF
NEXT I
END
Answers
Answered by
0
Answer:
output :
5
4
0
0
0
0
0
Explanation:
i=1 => 5
i=2 =>4
i=3 =>2
i=4 =>0
i=5 =>0
i=6=>0
i=7 =>0
Similar questions