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

Hair and nails are derived from cells of the A. skin. B. bone. C. blood. D. fat tissue.
Cheese sticks that were previously priced at 5 for $1 are now four for $1 find the percent decrease in the number of cheese sticks you can buy for $1
How can i simplify the square root of 49x^8?
How many miles do you estimate it would be if you still the strip around the equator
Which is the most accurate way to estimate 52% of 45
Infectious disease can be spread by which of the following? food water body fluid all the above
five ninths times the difference of f and 32
0.346 rounded to the nearest hundredth
how many carbons in amino acids?
How is the value of 2 in the number 542 different than the value of 2 in the number 324?