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

Jon's age is three times Jac's age. Jill's age is one third of Jac's age. Jon is 16 years older than Jill. How old is Jac?​
I was mortified to see the destruction of animals and plants.In the sentence, the root in the word "mortified" means frustration death sadness
Write in scientific notation:673,000
Quadrilateral K is the image of Quadrilateral K under a dilation
You are playing in a volley ball game Your team has 12 and the other team has 18.  How many points does your team needs to win? How many points does the other t
Give all the basic trigonometric functions that satisfy the condition [tex]f(x) \neq 0[/tex]
What can it be solved by?
The voltage supplied to a circuit is 17 V and the current running through is 10 A. What is the power generated? 170 W 1.7 V 170 A ОО 1.7 W
how do i solve this?
Can anyone help me with this math please I will give brainlist!! I used all my points for this question!!