What will be the output of the following program?
public class Result {
public static void main(String args[]) {
int num = Integer.parseInt("10");
double result = 0.0;
while (num > 0) {
result = result + 1 / num;
num--;
}
String output = "" + result;
System.out.println("Output = " + output.substring(0, 5));
}
}