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

Twenty stamps cost $8.40. How much does it cost to buy 5 stamps? Answers:  A. $2.10
Which of the following factors led to the fall of France to the Nazi? a) the fall of Dunkirk b) evacuation of the British forces c) the fall of Paris d) all of
Why is Chillingworth called a "leech"? In the scarlet letter by Nathaniel Hawthorne
Fungi exist primarily in the form of long filaments called?
How does hydrogen ion change into hydrogen atom
what is the ratio of X:Y. 12Y equal 7X
what are the 5 key features of tornado phenomenon?
Alaine has 1 gallon of paint. She is going to pour it into a paint tray that measures 10 inches wide, 12 inches long, and 5 cm deep.(1 gallon = 231 in3, 1 inch
What is the slope-intercept form of 9x +3y −6 = 0?
how do you say i love dogs in french