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

Helppppppppppp plzzzz
Diana sold 2/15 of the total number of green shirts on Wednesday. What is the difference in the fracion of the total number of green shirts that were sold on Tu
A motor has a power of 7,150 foot-pounds per second. Find the horsepower of the motor. A) 8,599,000 B) 39,325,000 C) 8 D) 13
Please all answers I'm in a hurry
Write two mixed numbers that are equal to 7.5
Two juice containers are in a cooler. One is plastic and one is metal. Students place a thermometer in each container. They find that the juices in the bottle a
I need your help please!!!! 11. This is a non-binding, collaborative arrangement among its members that provides a legal framework for states to assist one anot
What are all these answers help please
Read the excerpt from Fast Food Nation. The strict regimentation at fast food restaurants creates standardized products. It increases the throughput. And it g
what was the outcome of the supreme court case mcculloch v. maryland