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

There is a bag of 50 marbles. Andre takes out a marble, records its color, and puts it back in. In 4 trials, he gets a green marble 1 time. Jada takes out a mar
Explain how finding 4 x 384 can help you find 4 x 5,384.then find both products.
Please give me the right answer I want to be simple and you might get brainlitst In one or two sentences, explain why the combined weight of several liquids mix
What do i do un muy homework that se ya Explain what each oficio te quantitis un te problema means
True or False: Tikanga and Kapahaka are a part of the customs and traditions of the Maori culture. True False
My cousin has 3 children, ages 2, 5, & 8. Compute the mean, range and standard deviation for the children. My niece also has 3 children. Their ages are 10,
Solve 3x2 + 6x + 15 = 0
Gross weight placed on highway by wheels of one axle: a) Axial Load b) Axle Weight c) Tandem Axle d) Wheelbase
5 +6 equals a totalof wait
5+5+5+5+5+5-5-5-5-5+5+5+5-5-5-5-5-5-5-5