0
How do I write a JAVA code to find the nth term of an Arithmetic Progression series?
How do I write a JAVA code to find the nth term of an Arithmetic Progression series which I can input variables a, d and n?
2 Antworten
+ 1
Just like you write the mathematical expression to solve for any Arithmetic progression series. Put the same formula in code.
0
I don't know if this will help, but I actually created a program in Python for this. You can take a look at the comments and try converting the code to Java.
https://code.sololearn.com/cXoAjRBcR0IW/?ref=app