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

help!! f(x) = x2. What is g(x)?
Where and how do hurricanes form?
prove that under root 2 is a irrational number​
Use the drop-down menus to answer the questions. Which literary device is used in the first sentence? And then they arrived - the minister's family and all my r
cx = -105 m and cy = -88.2 m find the magnitude and direction of the vector.
Sheridan Company produces flash drives for computers, which it sells for $12 each. Each flash drive costs $9 of variable costs to make. During April, 1000 drive
Would it be possible for two people to have the same email address? Explain.
At its peak at the end of 1999, Microsoft had a market cap of $600B. PC sales were booming and most PCs ran on Microsoft software. Revenue was growing 30% per y
i could use help with anything idc
The grocery store has 20% off from the original price on cereal. The equation for finding the sale price would be y = x - (.20x). What is the sale price if the