Write a program to accept 2 integers and a choice to do the following calculations using switch case : 1 Add 2 Subtract 3 Multiply default: Invalid Choice
PLS SOLVE THIS Java PROGRAM
Answers
Answered by
1
Explanation:
Write a program to accept 2 integers and a choice to do the following calculations using switch case : 1 Add 2 Subtract 3 Multiply default: Invalid Choice
PLS SOLVE THIS Java PROGRAM
Answered by
1
printf("Enter two integers: "); scanf("%d %d", &number1, &number2); Then, these two numbers are added using the + operator, and the result is stored in the sum variable. Finally, the printf() function is used to display the sum of numbers. printf("%d + %d = %d", number1, number2, sum);
hope it may helps you
Similar questions