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 is the best first step in solving -4x + 5/3 > 5/10
What is endocrine system? What are its functions? Name the important endocrine glands present in a human body. Draw a labelled diagram to show the positions of
Consider four different stocks, all of which have a required return of 12 percent and a most recent dividend of $3.00 per share. Stocks W, X, and Y are expected
help me please i jave 10 min left HELP​
Amanda is cooking a turkey for dinner. The recipe says that the turkey should cook for 1\dfrac121 2 1 ​ 1, start fraction, 1, divided by, 2, end fraction hours.
what must be divided to 43659 to get a perfect square​
Find the sum: 15+20+25+30+35+...+875+880+885
Identify the 13th, 14th and 15th amendments. please
Some reporters have revealed that deformed frogs... A. In a quarter- mile radius of nuclear power plants. B. At old land fills that have been covered over and p
Two hundred ten more than a number divided by six is equal to two hundred thirty-four more than the same number divided by fourteen. What is the number?