public class Underflow {
private static void show(double x, double y) {
System.out.println("<tr><td>" + x + "<td>" + (x+y-x));
}
public static void main(String[] args) {
System.out.println("<html><head>");
System.out.println("<link rel=\"stylesheet\" type=\"text/css\" href=\"../teaching.css\">");
System.out.println("</head><body><table border><tr><td>X<td>X+1000-X");
show(1e9, 1000);
show(1e18, 1000);
show(1e27, 1000);
System.out.println("</table></body></html>");
}
}