@@ -0,0 +1,265 @@
+// Prevent a division by zero using the ?.%0Aclass NoZeroDiv %7B%0A%09public static void main(String args%5B%5D) %7B%0A%09%09int result;%0A%09%09%0A%09%09for(int i = -5; i %3C 6; i++) %7B%0A%09%09%09result = i != 0 ? 100 / i : 0;%0A%09%09%09if(i != 0)%0A%09%09%09%09System.out.println(%22100 / %22 + i + %22 is %22 + result);%0A%09%09%7D%0A%09%7D%0A%7D%0A

Prevent a division by zero using the ? operator