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

What is the slope of the Parallel to 8x-16y=-14 and passing through (3,0)
Could anyone possible help me?
If a gas has a volume of 1000 ML at a temperature of 23°C and a pressure of 100 mmhg, what is it’s volume under standard conditions of temperature and pressure?
A number is divided by 3 and then 5 is subtracted from the quotient the result is 1. Whats the number?
What is a example of nuclear fusion
Respect can be shown through _________ and it can also be felt. A. Behavior B. Self worth C. Values
everyone experiences conflict at some point. if youre experiencing conflict with a friend or family member, the first step you should take is to
(EASY) WILL MARK BRAINEST! Question: Write an equation in slope intercept form of the line that passes through the given point and is parallel to the graph (-9
help please asap!!!!!!!!!!!!!!
what was alexander hamiltons job when George Washington was president ​