Computer Science, asked by hdrc7283, 9 months ago

write a program in Java to display the first 10 terms of the series :1.5 , 3.0 , 4.5 , 6.0,.......

Answers

Answered by purivikas26
1

Answer:

Here is the program:

I have attached the program and output, please go through it.

Explanation:

Use a for loop, take its loop control variable as a float and initialize it to 1.5 - the 1st term of the series. The series is incrementing by 1.5 so the 10th term of the series is 15.0. Run the for loop till 15.0 and in each iteration increment loop control variable by 1.5.

Attachments:
Similar questions