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

Please help with relativistic speed composition!!!! Two spaceships A and B are travelling from one space station to another one, for a total distance of 48 lig
Convert 300 seconds to minutes. A) 5 minutes B) 15 minutes C) 30 minutes D) 150 minutes
TENGO QUE INVENTAR UN CUENTO ME AYUDAN
44.64 is 8% of what number?
How did settlement on the Great Plains threaten native Americans
What is the middle layer of the sun atmosphere
The length of a garden is 51 1/3 feet. One section of fencing is 3 2/3 feet long. Part A: How many sections of fencing are needed along the length of the garde
With transcendentalism, what do writers and philosophers value instead of science? A. Criticisms B. History C. Imagination D. Realism
By ruling in James mcCulloch’s favor in mcCulloch vs. Maryland , the Supreme Court agreed that
Which is a example of speed? A)Cindy biked westward at 30km/h B)A Rock is the the left of a flowerpot C) A dog runs an average of 8mp/h D) Leo lives 2miles nort