please slove this java program
using if statement:
if (c = = '+' )
sopln ( "sum = " + ( a + b ) );
else if ( c = = '-' )
s.o.pln ( "difference="+ ( a - b ) );
else
s.o.pln ( " wrong choice ") ;
Answers
Answered by
0
Answer:
c is the operator
This program tells if the operator is + add a and b. If operator is - subtract a from b. If operator is neither + nor - choice is wrong
Explanation:
Please mark me as the brainliest.
Similar questions