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

1 1/3 + 3 3/5 give ur answer in a mixed number
Have the factory workers the strike? * called of called in called up called off
Answer this questions please!!!
Explain how the organisms in the food web might be affected if more sea otters were introduced into the area
Identify the following music which among the 8 eight major types of music according to cultural sources and influences it belongs write the roman numeral only o
If an object has a density of 0.00018 g/cm cubed, what density would it be if it had a mass of 10kg
a coiled spring is stretched 31.50 cm by a 2.00N weight. How far is it stretched by a 10.00 N weight?
I wish i never made friends with this person conver into exclamatory​
Which element is more stable? A) P-3 B) P+3
what is the algebraic expression for the sum of the square of a number and nine times the number?