tilz tilz
  • 12-12-2017
  • Computers and Technology
contestada

Someone help me I don’t know what to do /COMPUTER SCIENCE

Someone help me I dont know what to do COMPUTER SCIENCE class=

Respuesta :

tonb
tonb tonb
  • 13-12-2017
It kind of depends on the intended language, but I can see the following mistakes:

- lines not terminated with a semicolon (but not all languages require this)
- while statement missing parenthesis, ie., while (num1 <= num2), also not required in all languages
- statements below the while statement must be grouped by curly braces
- num1+5 should be num1=num1+5 or num1 += 5

Output will be:

10
15
20
25
30
Answer Link

Otras preguntas

HELP ASAP (b) The grocery store was selling variety bags of apples. Each bag contained x Braeburn apples, y Granny Smith apples, and z Honeycrisp apples. Zahra
in 3,300, what is the relationship between the value of the digit 3 in each place
solve -2=4r+s solve for s please.
26 cm/s = how many m/min
Which term describes a physical activity that includes both cardio and strength-training exercises
A man buys a dozen computers for $15,000. He sells each of the computers for $2150. What percent profit does he earn? Please show work!
Quanto da : o dobro de -5 sobre 8 ?
theres 8 kids on the bus and 5 are boys whats the fraction
the changes in the french government were inevitable because?
order greatest to least 0.5, 3/16, 0.75, 5/48