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

two staments that show the relationship between the values of the numbers 0.5 and 0.05
ALGEBRA 30. The difference of three times a number and 4 is -19 32. The sum of twice a number and half the number is 10. 34. Four times the difference of a numb
What is 8,624 divided by 98
How can i write all the names that apply √36
Which way is the most casual way to greet a friend in Spanish
Add an adverb to improve the sentence the sport has change with the nation
write 720,080 in expanded form with exponents.
write 720,080 in expanded form with exponents.
In an inelastic collision, momentum is conserved. True or false?
Which shape describes a paragraph with no stated topic sentence?