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

PLEASE HELP NEED ANSWER ASAP!!!!! Explain how a mutation in a bacterial cell could help it become resistant to infection by a bacteriophage.
What’s the difference between applied and pure research
what is one exsample of a closed economy​
blacklisting and the house un-american activities committe​
What is Fermat’s Last Theorem?
Describe how the government of the United States changed in response to the 9/11 attacks?
The Soviet Union created the Molotov plan after World War II in order to A) demonstrate that communists were willing to work with democratic states B) punish Ge
Study the topographic map and symbol chart.At which point is swampland located?1234
Jean throws a ball with an initial velocity of 64 feet per second from a height of 3 feet. Write an equation and answer the questions below. Show all your work
please help on this one?