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

What value of x makes the equation true ? 4(2x-4)=16
find the circumference of a circle whose radius is 15.4cm
find the circumference of a circle whose radius is 15.4cm
All of the following expressions have a value between 0 and 1, excepta. \frac{(-3^{7})}{(-3)^9}b. 4^{-10}× 4^{6}c. \frac{(8^3)^3}{8^{-4}} d. ( \frac{2}{5} ^{8})
What value of x makes the equation true ? 4(2x-4)=16
jasmines cd collection is 3/8 jazz 1/4 rap and the rest is rock music what is the fraction of rock music
All of the following expressions have a value between 0 and 1, excepta. \frac{(-3^{7})}{(-3)^9}b. 4^{-10}× 4^{6}c. \frac{(8^3)^3}{8^{-4}} d. ( \frac{2}{5} ^{8})
find the circumference of a circle whose radius is 15.4cm
jasmines cd collection is 3/8 jazz 1/4 rap and the rest is rock music what is the fraction of rock music
All of the following expressions have a value between 0 and 1, excepta. \frac{(-3^{7})}{(-3)^9}b. 4^{-10}× 4^{6}c. \frac{(8^3)^3}{8^{-4}} d. ( \frac{2}{5} ^{8})