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

Which of the following statements is NOT true about the differences between liver cells and kidney cells in the same organism? A. They contain the same genes, b
True or False: Republican Motherhood is the belief that women played a key role in nurturing the principles of liberty among U.S. citizens by bestowing the valu
help me find the fraction that is evquvalint to 4/5
The process of cellular respiration can be represented by the chemical formula
2. 3 times the sum of a number x and 13
A multistage pump is required to deliver water to a head of 50 m at flow rate of 0.1 m^3/s. A motor rotating at 1800 rpm is available. Determine the optimal num
The industrial revolution began in Great Britain partly because economist there:
Corporations, as a separate legal entity, are subject to corporate taxes. Additionally, the stockholders in corporations are subjected to income taxes on the s
What do we mean by atmospheric pressure? What causes this pressure?
longest word in the English language