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

Impressionism is a highly personal way of writing. True False
Find the value of x.
What is the solution for -3x ≥ 36? x ≤ -12 x ≥ -12 x ≤ -108 x ≥ -108
How do the kidneys clean the blood?
.25 x 1000 using turtle method?​
(LC)The Department of Homeland Security recommends that officers communicate with one another and with other agencies using primarily a) police terms b) univers
How is creative thinking similar to a child’s thinking? A. Neither process restricts itself to logical solutions. B. Both thought processes always come up with
Sore ABC sells 8 lbs of oranges for $6.00. Store XYZ sells 14lbs of oranges for $11.20. Which store is less expensive and by how much per pound?
Solving Rational equations. LCD method. Show work. [tex]\frac{2a-3}{a-3} -2= \frac{12}{a+3}[/tex]
Which rational number could be graphed between –4 and –5?