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

who will file a private title suit for legally registered title to a property?
Which best explains whether a triangle with side lengths 2 in., 5 in., and 4 in. is an acute triangle? The triangle is acute because 2^2 + 5^2 > 4^2. The t
In an orchard, every 4th peach picked is sour and every 5th peach picked has black spots. What is the probability of a peach being sour and with black spots if
Can you help me to answer those questions please
A swing set needs repair. The support bar that is at the middle of the A-frame is failing and must be replaced. An image of a swing set is shown with triangle S
an object spring system moving with simple harmonic otiojn has an amplitude a what is the total energy of the system in terms of k and a only
social security. a person scheduled to receive a $2000 monthly social security benefit at a full retirement age of 66 can delay drawing benefits until age 70 an
Choose one of the cultural holidays listed in Part A (the options of holidays to choose from are in the image) and investigate it further. Research the followin
Can you help me to answer those questions please
Which poetic device is used in the poem?