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

What was the purpose of the 13th amendment ??
What does the bride learn in “woo’d and married and a’ ”? a. marrying a man who loves her is enough. b. having a house of her own is the most important thing
you jog 3.6 miles and 30 minutes at that rate how long will it take you to jog 4.8 miles
Gas molecules have very weak intermolecular bonds. True False
A computer downloads a movie at a constant rate
What happens to the mass of a soft drink when you open it?
Simplify 12^16/12^4. 12^12 12^4 1^12 1^4
how to Factor 6y2−24y+186y2−24y+18???
Money is an unlimited resource. TRUE FALSE
A soma dos quadrados de dois números positivos consecutivos é 41.Calcule o maior dos números