This is saying that the sum is 0.0 but I am not sure if it is right. Can someone let me know please. Here is the code i used:
import java.util.Scanner;
public class Lab424 {
public static void main(String[] args) {
int i; float sum;
i=3;
sum=0;
while(i<=99)
{
sum=sum + ((i-2)/i);
i=i+2;
}
System.out. println("Sum is " + sum);
}
}