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

val = 50 def example(): val = 15 print (val) print (val) example() print (val)
Can someone sub to my youttube channel pls, its called Yakobu, it would really help out :)
Read the sentence. For making the class laugh constantly, Billy received the goofball award. What is the gerund phrase in this sentence? a: the goofball award b
can someone help me out here i give Brainliest
FIRST ANSWER WILL GET BRAINLIESt What was a cultural feature of a large city like Chang’an? Mostly people with low incomes lived there. All the inhabitants were
Explain how to check the solution to any problem
helpp ill mark u as brain list​
es la mochila__ alumna​
5x5x5x5= ______ to the power of _____
what is the four means of transport?​