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

Olivia has 2 gallons and 3 quarts of vanilla ice cream and 1 gallon and 2 quarts of chocolate ice cream left over from a party. What is the total number of gal
How many ammonia molecules can be made with 1 N2 and 3 H2? Please explain.​
What is the median of the given set of data? 1. 1. 5. 4. 3. 7. 2.9. 4, 8​
Which of the following it's true about f(x) and g(x)
what two spheres are interacting when ocean water evaporates into the air 1. geosphere 2. hydrosphere 3. atmosphere 4. biosphere
How is pony boy different from his brothers and friends
A mosquito goes through complete metamorphosis. In this life cycle which stage comes after the egg stage? A. pupa B. larva C. adult D. nymph
Ignore that bottom but help pleaseee
You are taking a college class. The textbook costs over $150, but you find a PDF of it online for free. If you download the PDF, you are almost certainly guilty
What is the equation for the exponents