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

pls help will mark this brainlest
Motivation is defined as the willingness to do something and is conditioned by this action's ability to satisfy:_______
What are the consequences of learning on the brain and on future execution of behavior by that brain?
Which of the following graphs has a zero correlation?
On 1 October 2020 property, plant, and equipment of Kobia Limited consisted of the following balances: Original Cost Accumulated Depreciation Land and building
Acculturation is an informal process of learning a culture, and ___________ is a formal system of teaching knowledge, values, and skills.
What agreement clearly defines the status of military personnel of one country stationed
Find the ordered pair (s, t) that satisfies the system.
The issue that created the greatest political and societal division in america in the 1960s and 1970s was the? environmental movement sexual revolution women's
In the auditory system, hair cells are specialized receptors that respond to ____