JAVA
java
1
2
3
4
5
6
7
8
public class Program
{
public static void main(String[] args) {
double x = 10.0/0; //why okay??
// x = 10/0; this gives error
System.out.println(15/x);
}
}
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run