class else_example1 { public static void main(String args[]) { int i,j; i = 100; j = 0; // // we wish to print the quotient i/j if j is not equal to zero, // otherwise we want to print "Division bt error" message // if(j==0) System.out.println("Division by error"); else System.out.println(i+" divided by "+j+" is "+(i/j)); } }