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

how do i turn 13/143 into a unit fraction
Rocks are destroyed and formed through the process that drives the rock cycle. What is that process? Question 1 options: plate tectonics weathering erosion cont
When nitrogen and magnesium form an ionic bond, what is the formula? (2 points) Select one: a. N3Mg2 b. N2Mg3 c. Mg2N3 d. Mg3N2
23/50 of Xander's friends prefer to stay home on Friday nights. What percent of Xander's friends prefer to stay home on Friday nights?
changing subscripts is one of the steps of balancing a chemical equation
CAN SOMEONE HELP ME WITH THE HAMLET ASSESSMENT 25 POINTS AND BRAINLIEST??? In William Shakespeare's Hamlet, the protagonist, Hamlet, is depicted as an antihero.
Tom thinks a quarter of 64 larger than 50% of 34 is he right? Explain.
how do you multiply and divide rational numbers
The Roaring 20s and be described?
1 gallon of paint covers about 450 ft.² how many square feet will 1.5 gallons of paint cover