Computer Science, asked by binaa, 1 year ago

write a program using FOR loop in java .6.6+6.66+6.666+6.6666.......to nth term
please help urgent.!
i will mark as brainliest for the correct answer

Answers

Answered by ms69997221
0
For example, if the user inputs f1 = 2 and f2 = 3, then the series is 2, 3, 5, 8, 13, 21, etc.

The user also is able to input which term they want to come up.

I've gotten most of the program done (I think), but I have two problems

When finding the nth term the programs has to count f1 and f2 as terms 1 and 2. i cannot get it to do this, it counts the 3rd number as the first one
The program prints out all the numbers up to the nth term, but I want it to only print out the nth term
I've been at this for a while now, I'm pretty new to Java, I took a intro class in it 2 years ago, now I'm in the next class up, having a little trouble, so any help would be appreciated!
Similar questions