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

on a lake, Carol rowed a boat for 1/8 mile. Then luke rowed the boat for 3/8 mile. how far did carol and like row in all? simplify the answer if possible help
Consider the figure below. What are the values of x and y?
please answer for help
The answer is 288 cm ( A P E X )!
La palabra que no rima (adivinanza)
5a. For each quantity, decide whether circumference or area would be needed to calculate it. Explain or show your reasoning. The distance around a circular trac
HELP QUICK!!!!!!! I ONLY HAVE 10 MINUTES LEFT
List some harm reduction strategies that have been adopted to address addictive behaviours.
pls help math!!!!!!!!!!!!
Take a moment to practice identifying a single, researchable question for the following issues: a. A company ships its widgets to a customer on December 31 but