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

what does 1694 quarter hours convert to in hours?
mark turned quickly, pivoting on his right foot, while he was playing basketball. he felt a sudden, sharp pain in his knee and found his leg would not support h
what is the discriminant of the quadratic equation 0 = –x2 4x – 2? a.–4 b.8 c.12 d.24
which is a quantitative method of data collection?
a microwave oven produces energy waves that are _____. longer than visible light shorter than visible light not part of the electromagnetic spectrum
which is a type of functional document? a. research paper b. driver's license application c. text message d. doctor's note
What's one way we can check our answer to 2 ×10 = 20?
choose an equation in slope-intercept form for the line that passes through (0,7) and is parallel to the y=4x-19. select one: a. y = 4x 3 b. y = 4x 7 c. y= (1/4
give me the ans and steps thanks
Caves under the water can be formed in different ways. Which of these phrases is an adjective phrase? A. can be formed B. under the water C. Caves under the