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

how does the media influence us ?
what is 15/50 in lowest term 3/10 3/8 1/2 1/4
in how many ways can a student arrange 6 textbooks on a locker shelf that can hold 4 books at a time? 30 120 240 360
Why would it be hard to find the ideal CO2 level if the light intensity were very low?
between the 1400s and 1800s, europe was primarily interested in africa as a source of: a : ivory b : slaves c : rubber
How many significant figures does 2.4 have?
38 is 0.02% of what number
what role did manifest destiny have in westward expansion? a. immigrants entering the country needed land on which to live. b. westward expansion had already pu
the quotient of (x5 – 3x3 – 3x2 – 10x 15) and a polynomial is (x2 – 5). what is the polynomial?
how many solutions does the following equation have? |6x 12| = −18 no solution one solution two solutions infinitely many solutions