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

rename the fraction as a percent:1/2 =
graphing line y=-6x+3
how do you write 8/11 as decimal
Who wrote the first autobiography
What statement best describes the main reason behind establishment of governments in early river valley civilizations A. People formed governments as a way to s
How does Germanic culture compare and contrast with the Roman culture ?
Gina has 20 collector's stamps. 8 stamps are blue, 6 are red, and 5 have both colors. if a stamp is chosen at random, what is the probability that the stamp ha
40,841 in expanded notation
while studying the ocean floor scientists found alternating bands of
the visible shape or configuration of something.