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 to write 6007200 in two other form
What is 11/9 reduced to a mixed number?? i cant figure this out
round to the nearest hundredth. 84.562
Show two ways to decompose the number 749
0.4 greater or less than 0.036
who can help me with quantitative observation examples
if five notebooks cost $5.25 , how much would three notebooks cost?
what number is 100,000,000 more than 5,438,724,022?
how to estimate, then find the sum of137,638 + 52,091
What is (2/3) to the 4th power?