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

name 3 mediums that are predominantly 3 dimensional
A packer puts 50 vitamin capsules into a bottles. How many bottles are needed to pack 100 dozen capsules?
What circumstance or event is Dr. Martin Luther King Jr. responding to in letter from Birmingham jail
please help me out if you can!
What is a proportional tax and how does it affect people of all incomes
I will mark brainliest
Tori examined the pattern of exponents in the table.
It must be acknowledged, however, that "many television programs are educational" (Owens, Habib, and Jones 349). A. correct B. incorrect
Quelle phrase decrit ce que tu vois
Lobbying is a. an attempt by an individual or group to influence the passage of legislation by exerting indirect pressure, through advertisements and media cov