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 is a risk of obesity? A. Bone loss B. Sleep apnea C. Liver damage D. Addiction
A poem’s rhythm is often used to communicate _____.
In which Supreme Court case did this provision of the Northwest ordinance play in important part
Which Southeast Asian nation fought in wars against Japan, France, and the United States during the 20th century?
is the paint on ORIGINAL adidas superstar splash repousse??
which literary movement was stylistically rooted in political pamphlets, highly ornate writing, and rhetoric? A) puritanism B)romanticism c)modernism d)ration
How many milliliters of water are in each 7 beakers
When the ph of a solution is changed from 3 to 4 they hydronium ion concentration of the solution
How was churches in the 14th hundreds
What are 2 examples of body fluids that help the immune system.