cm74usap2j62s
cm74usap2j62s cm74usap2j62s
  • 13-08-2018
  • Computers and Technology
contestada

I need help writing this pseudocode

I need help writing this pseudocode class=

Respuesta :

tonb
tonb tonb
  • 13-08-2018

The flowchart gives most of the solution, you only have to translate the loop to something like a while() { ... } structure:

X=0

input num

while (num > 5) {

ouput num

X = X + num

num = num + 2

}

output X

If you run this with num = 8, it would print:

8

6

14

Answer Link

Otras preguntas

48÷-6-(-2)3Calculate the following , showing all the steps​
y is inversely proportional to aiWhen a = 2, y = 10a is directly proportional to xWhen x = 4, a = 20Find a formula for y in terms of x.Give your answer in its s
One interior angle of a parallelogram is 65 degrees . If the remaining angles have measures of a,b and c, what is the value of a+b+c?
why do you think FDR beat hoover for the presidency in 1932?
On a certain hot​ summer's day, 769 people used the public swimming pool. The daily prices are $1.25 for children and $2.50 for adults. The receipts for admissi
QUESTION 4 Which of the following is a characteristic of low-context culture? O Efficiency and speed are valued O Teamwork is preferred O Excellence and complet
HELPP ILL GIVE BRAINLIEST
Plz help with the last 2
A gas A. has a definite shape but no definite volume. B. Has both a definite shape and a definite volume. C. Has a definite volume but no definite shape. D. Ha
The volume of a storage tank is 1695.6 m3. The radius is 6m. How tall is the storage tank?