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

Define the term work and state it's unit.​
Write a word phrase for each algebraic expression? 2(18+t)
Why do most of the works of sculpture of Nepal have religious influence on them​
does any of yall play rob lox?
Puerto mont Chile 4 N 31 E
What was the main way that business leaders helped the war effort during World War Il?
Where were the British located while the French where in Canada
Jessica thinks of a number She multiplies the number by 3 She then subtracts 7 Her answer is 5 What number did Jessica think of
The distance between Saturn and the sun is approximately 8.9 × 10^8 mi. The speed of light is approximately 1.9 × 10^5 miles per second How long does it take li
blood cells bring oxygen to cells and take carbon dioxide away. white red blue