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

Él hace sus compras por Internet, él ___________ todo lo que necesita en línea. encuentro encuentra encontramos encontré
I know the center's (-1, 3), I just can't figure out how to get the correct radius.
Complete the equation, by supplying the missing exponent. A virus has a volume of approximately 4.7 x 10−14 cubic centimeters. Calculate the estimated volume of
What is the ratio of 195?
As life would have it, we all come to forks in our paths when we need to make a choice, knowing that…
A member of which minority group is least likely to be the recipient of a doctorate in the field of psychology?​
How can the use of new technology in industry benefit producers
Wich event started world war 1
True or false an electron carries a positive change
I need helpppppppppppppppp