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

Which of these should always be included in a personal health plan for fitness? Select the two correct answers. A. Pain B. Goals C. Weight loss D. M
How are our lives today affected by the neolithic revolution that took place 11,000 years ago?
telophase is a stage of a cellular process that begins after the chromosomes have moved to opposite poles of the cell. During which cellular process does teloph
What is the kinetic energy of a 2,000kg boat moving at 5 meters per second?
harold was 5 years older than Mary. In 10 years he found that 4 times his age exceeded twice Mary's age by only 50. How old were Harold and Mary in the beginnin
a girl is snorkeling 1 meter below sea level and then dives down another 0.5 meter. How far below sea level is the girl?
solve the system of equations below y=3/2x-2 and 2x+y=-4
How many moles are found in a 100.0 g sample of CuF2?
What cells were chloroplast present in? What did they look like in the various cells?
How does neural transmission compare to endocrine signal transmission?