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

Solve 5x+4=14 EXPLAIN.
List at least four steps to successful meal planning.
Forty students are in the science club. Of those, 45% are girls. This percents increases to 56% after new girls join the club. How many new girls are join?
A recent trend in advertising is viral marketing. The goal is to convince viewers to share and amusing advertisement by email or social networking. Imagine that
4x+5x-20 = 9x-20 has one , none , or infinite solutions explain.
When a cell is dividing the genetic material is in the compact form of?
Which of the following is true about behavior of an organism ? A. The behavior of an organism is influenced by both its heredity and its environment. B. The b
Which phrase from the "The Bells” best conveys the mood of lines 70-94? solemn thought melancholy menace muffled monotone human heart
Please I really need help on this matter question how many real zeros does y=(x+8)^3+9 have.
The density of solid fe is 7.87 g/cm3. how many atoms are present per cubic centimeter of fe?