I don't understand where have I mistaken in the program. I would appreciate any help.
Program : import java.util.Scanner; public class Program { public static void main(String[] args) { Scanner input = new Scanner (System .in); int a,b,c,ch; System .out .println ("Enter the two numbers\n"); a = input.nextInt(); b = input.nextInt(); System .out.println ("Enter the operation to perform\n1.Addition\n2.Subtraction\n3.Multiplication\n4.Division\n"); ch=input.nextInt(); switch (ch) { case 1: c=a+b; System .out.println ("Addition of the two numbers is"+c); break; case 2: c=a-b; System .out.println ("Subtraction of the two numbers is"+c); break; case 3: c=a*b; System .out.println ("Multiplication of the two numbers is"+c); break; case 4: c=a/b; System .out.println ("Division of the two numbers is"+c); break; default: System .out.println ("Maybe you have entered a wrong choice\nSorry, but we can't process you request\n"); } System .out.println ("Thank you for watching my program. Hope you liked it! "); } }