I need help with a problem for class. the Problem is :
Q10: Write a for loop to sum the following series: (1 /2) + (2/3) + (3/4) + … + (49/50).

my code so far is

public class forlooptest {

...