dipikakarki265
dipikakarki265 dipikakarki265
  • 01-06-2021
  • Computers and Technology
contestada

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​

Respuesta :

tonb
tonb tonb
  • 01-06-2021

Answer:

See picture.

Explanation:

Ran it on repl it.

Ver imagen tonb
Answer Link

Otras preguntas

A data set has the following characteristics: Mean: 4.9 Median: 6 Mode: 6 Variance: 4 The z-score is the number of
the first law of thermodynamics states that energy can't be created or destroyed. If people can't create energy, where do we get energy to do work
How many carbon atoms are in the longest chain?
Why were portraits important in early history?
How much larger is one cubic foot than one cubic inch
the quadratic formula gives which roots for the equation 2x^2+x-6=0
Read the excerpt from "The Most Dangerous Game." "Even so, I rather think they understand one thing—fear. The fear of pain and the fear of death." What does thi
Two number cubes are rolled. If all numbers are equally likely, what is the probability that the sum is 8? 6/36 ≈ 17% 4/36 ≈ 11% 8/36 ≈ 22% 5/36 ≈ 14%
Event A is rolling a five on a six sided die and event B is rolling an odd number on the same die. Are the events dependent or independent, why?
In addition to compensation, customers expect _____. in other words, they expect fairness in terms of policies, rules and timeliness of complaint process. funct