Computer Science, asked by shrishti0864, 4 months ago

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 tejas9193
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 kanishkagupta1234
1

 \huge \boxed {\red{\bold{Answer}}}

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