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

At a local yoga studio, 80% of the members are women and 20% of the members are men. The average age of the women is 30 and the average age of the men is 40. Wh
you receive an offer for a job that pays $10.50 per hour. If you work 25 hours, How much will you earn in one week?
Please see picture for the question.
the area of ava rectangular back yard is 325 square yards.if the length of the yards is 13 yards,what is the width of the yard
Why does juliet tell her father she is willing to marry paris?
258 times 78 divided by 62 subtract 100
Molly can drive 112 miles on 4 gallons of gas and 182 miles on 6.5 give an equation
A building has 9 windows each window is 5 feet tall About how tall is the building
Compare the behavior of an endotherm and an ectotherm on a hot summer day. How does each organism respond to changes in the environment? please help and fast th
Which of these is a feature of the International Gothic style, religious subjects were: