suzen123
suzen123 suzen123
  • 04-01-2021
  • Computers and Technology
contestada

JAVA

Write a program to display the first ten terms of the series:
5, 10, 17, --------------​

Respuesta :

tonb
tonb tonb
  • 04-01-2021

Answer:

class Main {  

 public static void main(String args[]) {

   int a = 5;

   int delta = 5;

   for(int i=0; i<10; i++) {

       System.out.printf("%d, ", a);

       a += delta;

       delta += 2;

   }

 }

}

Answer Link

Otras preguntas

The larger leg of a right triangle is 3 cm longer than its smaller leg. the hypotenuse is 6 cm longer than the smaller leg. how many centimeters long is the sma
A value of θ for which sec θ = csc (θ − 20°) is A. 70° B. 60° C. 55° D. 30°
Which one of these statements best describes the concept of form as it's used in design? A. The concept of form refers to art objects, while shape refers to fu
compare and contrast cold wave and windchill factor
What is the name of the snake that joined the canadian police force?
the arabian peninsula is located between which two landmasses
If you are diagnosed with a viral infection, such as the flu, would your doctor prescribe antibiotics for you? Explain your answer.
20 POINT QUESTION. EXPLAIN HOW YOU GOT THIS ANSWER. I WILL MARK AS BRAINLIEST THANK YOU :) A temperature in degrees Fahrenheit is equal to 32 more than 9/5 time
Which event must take place first in order for the appeals process to take place?the supreme court rules on a case.an individual is found guilty during a trial.
Joe has suggested changes in Kim's document. Kim doesn't agree with some of the changes. How can she remove Joe's changes?