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

WL9603 A Choose the answer that does NOT complete the sentence correctly. Los estudiantes — la lección. comprenden beben leen hacen
Why is it so difficult to come up with a single, definitive theory about why we dream?
Please need help on this
How did the global landscape change after WW2?
WILL MARK CORRECT ANSWER BRAINLIEST!!!!!!!!!!
Which statements describe early Christians beliefs( choose (3) correct answers please)
Who would be harmed by the price controls
5) Which of the following best describes the strategy of "island hopping"? Fighting Kamikaze fighters on the islands O Carpet bombing the islands of Japan Dropp
Plz help I just need numbers
How would the meaning of the passage be affected if the phrase "all come down" were changed to "advance"? The urgent tone would become one of negativity. The ur