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

i need help on doing the equal values method. Please tell me how to do y=11-2x y=x+2
Please Please Please Help Me Write the expressions as a product: x^3–y^6 a
from ages 30 to 90, a person's lung capacity is likely to decrease approxiamtely by what percent?
HELP!!!!!!!!!!!!!!!!!!! ASAP !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Solve the inequality. Graph the solution. 7 > z − 5
How would I solve; A bakery has 456 dozen cookies. How many individual cookies are there ?
Park two has 12 more benches than Park one. If 2 benches were transferred from Park two to Park one, then Park two would have 2 times more benches than Park one
which of the following is an accurate description of the Maya mathematical system
Calculate the normal force pushing up from the table in each example 8 kg
Question number 12 please
Whereas some STI pathogens prefer darkness and moisture, others thrive in bright light and dry conditions