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

Five homes were recently sold in Oxnard Acres. Four of the homes sold for $400,000, while the fifth home sold for $2.5 million. Which measure of central tendenc
PLEASE HELP ME 25 POINTS
Can someone help me
The purpose of this scene is most likely usatestprep
Given vector u = (3, 1) and v = (2,-4), determine the value of v – 4u in component form.
A 300 g sample of copper is heated to 285°C and then placed into 1000 g of water at 26.5°C period what was the final temperature of the water?
Solve the inequality x/4 is greater than or equal to -6 a) x ≤ –24 b) x ≥ 10 c) x ≥ –10 d) x ≥ –24
Discuss religiou challenges faced by Budhists in Kenya today​
Find the roots of x^2/4 =2x -10 A. 8 + 2i√3 B. -8 + 2i√3 c. -4 + 2i√6 D. 4 + 2i√6
Find the area of the regular polygon. Round to the nearest tenth