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 subject in the sentence "It is a steel cylinder a hundred feet long"
Explain what 10CLS program does and the write the output​
Will Mark Brainlest Help Please Please .​
NEED HELP ASAP WILL MARK BRAINLIEST
African leaders who resisted the colonial rule​
Convert 15,000 seconds into minutes
HELP PLZ Which sentence should be revised to eliminate redundant wording??
What goals does Mandela say he is committed to on behalf of the African people in 1964? Did he fulfill his commitment? Explain your answer in four to six senten
The length of the hypotenuse of a 30​ -60 ​-90 triangle is 32. What are the lengths of the​ legs?
For U.S. adult males, the mean height is 174 cm with a standard deviation of 5 cm and the mean weight is 86 kg with a standard deviation of 10 kg. Elmer is 185