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