You are on page 1of 2

/*

* To change this license header, choose License Headers in Project Properties.

* To change this template file, choose Tools | Templates

* and open the template in the editor.

*/

import java.util.Scanner;

package atif;

/**

* @author Atif

*/

public class Atif {

public static void main(String[] args) {

Scanner sc = new Scanner(System.in);

System.out.println("Enter 1st Number : ");

int a=sc.nextInt();

System.out.println("Enter 2nd Number : ");

int b=sc.nextInt();

if(b=0)

System.out.println("Your Entered Number Can not Devide so its an Exception ");

}
else

System.out.println(a/b);

/**

* @param args the command line arguments

*/

public static void main(String[] args) {

// TODO code application logic here

You might also like