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 did darwin mean when he stated "descent with modification"? darwin was referring to change in species over time. darwin was referring to how offspring rese
Answer number 39 please and thxx ✨
Is all of the chemical process that maintain life
Help with the following five problem please! For number 12 the teacher said 10 drops= 1 mm
The 52 cards in a shuffled deck are dealt equally among four players, call them a, b, c, and d. if a and b have exactly 7 spades, what is the probability that c
Marissa just finished completing her new employee questionnaire form for a job in sales. despite being a rather shy, introverted person, marissa checked all the
Do as many as you can help me with please!!
Explain the results for the tube in which 1.0 m naoh was added to benzoic acid. write an equation for this, using complete structures for all organic substances
Which type of volcano has more predictable eruptions?
Need help on this problem