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

Write the number that matches the clues My number has 2 hundreds. The tens digit is 9 more than the ones digit
What constitutional principle did the supreme court establish in the McCulloch case
if the slope of a position versus time graph is downward what kind of motion produced the graph
The cost of living last year went up 7%. Fortunately, Alice Swanson got a 7% raise in her salary from last year. This year she's earning $42,805. How much did s
WHAT COULD HAPPEN IN THE BODY IF PROTEINS OR ENZYMES LOST THEIR CONFORMATIONS OR WERE DENATURED?
The length of Marshall's poster is 2 times its width. If the perimeter is 72 inches, what is the area of the poster?
plz helpp with this french hw!
how many 5/8 pound bags does it take to make 13 pounds of soil?
Express 230 in scientific notation
how do you solve: 4 + |k + 1| <15