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

Which type of pronoun is bolded in the following sentence? What car did Francis buy? indefinite pronoun demonstrative pronoun relative pronoun interrog
1. What is the conversion of 350 milliliters to liters? 2. what is 3 liters converted into milliliters? 3. What is 9 liters converted into milliliters?
What makes the steps of foot over bridge at railway station to wear out slowly?
1) Grant has 4 pairs of shorts (blue, white, khaki, and black) and 3 shirts (red, orange, and green). a) Draw a tree diagram to show all possible outfit outcom
Which type of pronoun is bolded in the following sentence? What car did Francis buy? indefinite pronoun demonstrative pronoun relative pronoun interrog
n= t/t. if n = 8.00 and t = 2.30 days, what is the value of t with proper units
In right triangle ABC, ∠A and ∠B are complementary angles and sin A = 89. What is cos B?
what is a hotel boy in a hotel
Check translation: Mi posesión más grande es mis perro. My greatest asset is my dog. Please explain if I made a mistake, thanks :D
What are organ systems are made of