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 are 3 types of plate boundaries?
Is sickle cell an inherited or acquired disease?
how do i solve for interests?
For the expression 6 − y + 3, determine the coefficient for the variable term
Choose the correct product of (7x − 3)(7x + 3).
What is the sum of the measures of the acute angles of any right triangle? Explain your reasoning.
Why did American colonists resent British taxes? A) American colonists were unhappy that the high taxes were keeping the nobility in luxury. B) Unlike American
According to the evolutionary perspective of mate selection, why do men and women exhibit different preferences in mate selection? A. Each gender has differing
Roger earns $24 a week mowing lawns. he spends 1/6 on lunch and 2/3 on music. He saves the rest. How many dollars does Roger save?
Find the area of of a regular octagon with side length 8 cm