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

When MgCO3(s) is strongly heated, it produces solid MgO as gaseous CO2 is driven off.Does the oxidation number of carbon change upon the formation of CO2?
An object with mass 60 kg moved in outer space. When it was at location < 13, -19, -3 > its speed was 3.5 m/s. A single constant force < 220, 320, -120
which type of gas is filled in lays pack and why?
what does como eres tu mean in spanish?
let f(x)=2x-3 and g(x)= -x^2-1 find ( g o f) (x)
You would expect a phosphorous-chlorine bond to be 1. nonpolar, with the neither end having a partial charge. 2. polar, with neither end having a partial charge
which foods earthworms can digest?
When MgCO3(s) is strongly heated, it produces solid MgO as gaseous CO2 is driven off.Does the oxidation number of carbon change upon the formation of CO2?
Compute the odds in favor of rolling a sum of 10 in a single roll of two fair dice
write an equation that is perpendicular to the line y = 2x + 13?