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

17x-9(x+4)=3x-26 please show work
Always , sometimes or never ,? Is the lcm of 2 numbers is the product of the 2 numbers ? ????
The word which means to cut into two parts is _____.
what is nine tenths plus four 15ths equal
what is the slope-intercept form for the equation y-10=3/5(x-5)
What rights did egyptian women have?
What are the square roots of 324? A. 162 and –162 B. 19 and –19 C. 18 and –18 D. 16 and –16
what are the differences and similarities of inertia and friction?
what is 20/10 as Mixed number
From 1818 to 1846, the United States and Great Britain administered the territory in Oregon together. This was a compromise until both countries could agree on