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 earths layers is just below the lower mantle
What mixed number represents 9.8
I NEED HELP!! WILL MARK BRAINLIEST!!!!​
Are viruses real ? If yes ?why if no why ?
Identify the figurative language used in the following passage:"So after that, dimly, dimly, she sensed it, she was different and they knew her difference and k
there are 27 students in mrs. Yean's homeroom. 12 of them have home computers how many students don't have a home computer?​
Ihlan initiates a lawsuit against Juno, alleging that Juno has not paid her rent for six months and Ihlan wants her to vacate her apartment. The sheriff serves
Cleavage is chick is called discoidal type,why?
Is Archaebacteria auto trophic, heterotrophic or both?
Many influential economists, politicians, and business leaders think that a shift toward a more integrated and interdependent global economy is a good thing. th