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

Can some help with this ​
Can someone help me on 1, 2, 3 and 4 plz I really need help
y+4/12 – y–1/12 = y/2
What are the differences between metals, nonmetals, and metal looks in the periodic table?
Ion know what to do
You can fulfill your civic responsibilities by: a. Vēling b. Obeying laws c: Paying taxes d. All of the above
16. In the figure above, DG is the angle bisector of measure of angle
The solution set of inequalities is equal to how much?​
Electrons are transferred in the bonds. Formulas A) ionic B) covalent C) metallic D) all chemical
In what ways was the American Revolution a political revolution? How was it a social one?