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

What kind of particles make up compound
What kind of particles make up compound
What kind of particles make up compound
C(squared)L(squared) + 100v(squared) = 100c(squared)I have to solve for L
C(squared)L(squared) + 100v(squared) = 100c(squared)I have to solve for L
C(squared)L(squared) + 100v(squared) = 100c(squared)I have to solve for L
How does 4/15=14/n? What does n equal?
What is the quotient of -1 4/5 and 2 1/4?
Search results for "A shipment of 18 cars, some weighing 3,000 pounds, and the others weighing 5,000 pounds each. Together the shipment has a total weight of 30
Why does land heat up more faster than water?