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

Why is formal/standard the most appropriate level of diction for a work email?*because it illustrates an educated tone*because no one would understand most form
find the difference 6 3/5 - 2 1/4 A) 4 7/20 B) 2 1/4 C) 8 17/20 D) 6 3/5
What kind of substances make good thermal insulators?
Can you please help me with a. b. And c. All three
Which atomic model was proposed as a result of J. J. Thomson’s work?
Muslims believe that artistic representations of humans and animals especially in a mosque are not appropriate as they distract one from the purpose of worship
which American Indian group was allied with the British as the French and Indian war began?
What is the weight in newtons of a 2.45 kg laptop computer? Assume g = 9.8 m/s2. a)0.25 N b)4.0 N c)24 N d)240 N
40 percent of 49 is what
evaluate the following expression using x=3 4 x + 8