Simple Java Program

Just open your Java compiler and Paste this code.

    public static void main(String[] args) 
{
        // TODO code application logic here
         Scanner input = new Scanner(System.in);
    int a; int b ;
    int c;
        System.out.println("numbr");
        a = input.nextInt();
        System.out.println("2nd");
        b = input.nextInt();
        c = a*b;
        System.out.println(c);
    }
   

}

0 comments: