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
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
English,
4 months ago
Physics,
4 months ago
Computer Science,
4 months ago
English,
9 months ago
World Languages,
11 months ago
Math,
11 months ago