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 DUE TOMORROW. one math problem #29
Rewrite the equation by completing the square x^2+10x+16=0
Marginal Utility is the satisfaction or usefulness obtained from acquiring one more unit of a product. options: a. True b. False
Susan is trying to decide whether to quit her $20,000 per year job so she can return to college next year as a full time student. If she goes to college next ye
Please explain three ways in which you have used any branch of chemistry in your everyday life. Explain how the five branches of chemistry can and very often do
what does homeostasis means?
help me solve for 13 and 14 please
My last question Which one of the following is NOT a characteristic of classical music? A. It is complicated in form. B. It was composed in Europe between 1750
The 3 regions of colonies
A(n) _____ is a computer network that uses Internet Protocol technology to share information, operational systems, or computing services within an organization.