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

leaves the cells and joins the bloodstreams as a waste product of respiration?
Muscle fibers move back and forth during _____.
True or False? If the ball hits any line when it is NOT on the serve, it is in bounds. Pickle Ball for PE
What is the difference between being an affiliate and an independent station ?what are the benefits to being an affiliate
Which phrase best completes this sentence? D’où vient Maria? Maria ______ ______ Argentine. A. est du B. vient d’ C. est de D. vient de
-(1+7x)=6(-7-x)+36 Alg 2
Agree or Disagree? During the ice age,there was less water in the oceans than there is today
Siempre digo la verdad a mi madre
find the indicated length
Find the measure of each angle.