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

Does the sentence state a fact or an opinion? People should wait until they are at least eighteen before learning to drive.
You want to rent movies online. The new service charges a sign up fee of $10 Then, you can rent as many movies as you want for $12 per month Which equation show
Lisa swam 6 less than four times as many laps as Amanda. Brynne swam eight more than twice as many laps as Amanda. If Lisa and Brynne swam the same amount of la
Which of the following was an important politician who supported moderate progressive reform?
A town is holding a competition for various athletic games. Each community has 14 players. There are 112 communities competing in the games. How many players ar
What is Desire for Power for Haitian Revolution?
what does point-slope form look like?
If you saw the number BDB76B used to describe a color in a computer program, which number system is being used? A Hexadecimal B Binary C Decimal
Please help me out please
please be quick, I need this as soon as possible!