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

Find two fractions equivalent to each fraction of 45/60
Which verb is progressive? A. had been giving B. can give C. had given D. will have given
What type of people were supporters of imperialism?
what is the greatest common factor of 38 and 59
what is the worlds largest population but not largest land mass
Select the best analogy. temperature : degrees centigrade :: A. sports : decathlon B. trisect : lines C. distance : feet D. overt : obvious
what is cultural diffusion and how did the silk road promote cultural diffusion
“Does remembering bad things that happen to us lead to hope or despair?”
x-(9x-10)+11=12x+3(-2x+1/3)
Susan rides her bicycle 5 miles in 2/5 of an hour .at this rate how many miles could she ride in 2 hours