JAVA
java
1
2
3
4
5
6
7
8
public class Program
{
public static void main(String[] args) {
System.out.println((Double.POSITIVE_INFINITY > 10000) + " positive infinity bigger than any value");
System.out.println((Double.NEGATIVE_INFINITY < Double.MIN_VALUE) + " Negative infinity less than any value");
System.out.println((Double.POSITIVE_INFINITY > Double.MAX_VALUE) + " Infinity bigger even comparing with max possible value");
}
}
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run