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

What is the interquartile range of this data? 6 7 8 9 Box-and whisker plot titled Temperatures in Celsius ranging from 12 to 48 with the five-number summary fro
How many solutions does the equation have 4p + 1 = 49 - 7
Buying a house is most likely a long-term goal for a person of which of these ages? A. 19 years old B. 79 years old C. 69 years old O D. 59 years old
What is the answer? Evaluate.
Find the perimeter of the figure when l = 15 m, w = 9 m, x = 3 m, and y = 6 m
Purple Group Header Warm-Up Why can I smell a chocolate bar even though it is a solid? Read the description of the office mystery and write your prediction belo
Vaping is the inhaling of a vapor created by an electronic cigarette or other device. True of false
Little Bobby, who is 5 years old, finds his older brother’s "Extendo Sword", a toy sword about a foot long that is sharp and springs out to 5 feet long when a b
What are the opposites of 9, −3.6, 2.25, and 9 1 2 ? Enter the answers in respective order, each separated by comma.
H. 539.28 - 6.42 Help pls