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 one ? is the answer and how to find this answer
If the sales price of a dvd is $20 and the markup is 34%, what is the cost of the dvd?
What is the meaning of the word "internalize" as it is used in the following sentence? (4 points) Try to internalize the vocabulary words you have read. Forg
Which type of neuroglia is found outside of the brain?
Simplify the expression.
15 points!!!! There is a line that includes the point 0,10 and has a slope of 7/4. what is it’s equation in slope intercept form
a stone dropped into a well is heard to strike the water after 8seconds. find the depth of the well if the velocity of sound is 350m/s
I know #2 is D. I just need to know why
How many neutrons does element X have if it’s stormy umber is 33 and it’s mass number is 95?
HELP PLEASE I AM GONNA FAIL THIS CLASS PLEASE!!! in 2001 Mexico imposed a 20% tax on all soft drinks not made from sugar cane high fractals corn sit-up whic