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 anyone help me on this
Oscar Montez’s savings account has a principal of $7,201. It earns 6% interest compounded quarterly. What is the amount of interest he earned by the end of the
Who made a decree that everyone should be taxed? Caesar Augustus King Herod Caesar Tiberius Pontius Pilate
Research indicates that using electronic devices before bed may make it difficult for people to fall asleep. The light appears to interfere with the body’s ab
“You’ve got to realize,” he said, “that I don’t want you to do it if you don’t want to. I’m perfectly willing to go through with it if it means anything to you
Which monarch sponsored english exploration? a. henry viii b. henry of portugal c. francis drake d. elizabeth i
What battle was known as the turning point in the civil war?
A student tries out for the track team and runs a lap in 45 seconds. The coach tells her she will have to cut her time by 50% to make the team. How fast must s
7 major land areas of the earth are called ??
approximately when did the ocean become an important area of study