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

In △ABC,c=12, m∠B=27°, and a=9. Find b. A. 11.5 B. 13.2 C. 6.8 D. 5.7
what does habitat mean​
2 Textos con 5 puntos seguidos, dos puntos apartes y un punto final
Select all the items that would be considered subjective data? a. "I felt very hot for the last 3 days." b. Blood pressure 128/64 c. Potassium level of 3.7
Calculate the osmotic pressure of a solution containing 1.502 g of (Nh4)2SO4 in 1 L at 36.54 Degrees Celcius. (The gas constant is .08206 Latm/molK. The molar m
Explain a graded potential.
Direct Stafford Loans are funded by the
A new bridge structure requires triangles that are in a ratio of 1:1. If AC = 5x − 5 and EC = 3x + 9, find the distance between the top and bottom of the bridge
Select the correct answer. What do microwaves have in common with light waves? O Both are compression waves. A. B. 0 Both are longitudinal waves. 0 o Both are e
Which statements about the graph of the function Fx=-x2-4x+2 are true check all that apply