Can anyone find the error in following code
import java.util.;
import java.io.;
class petrol{
public static void main(String arg[])
{
Scanner sc = new Scanner(System.in);
int n;
int[] i = new int[100];
int x,y,j=1;
float t,s;
n=sc.nextInt();
n = n*3;
while(j<=n)
{
i[j] = sc.nextInt();
j++;
}
j=1;
while(j<=n)
{
x=i[j];
y=i[j+1];
s=i[j+2];
if(x==0 && y==0)
{
System.out.println(0);
}
else
{
t=s/(x+y);
System.out.println(t);
}
j=j+3;
}
}
}