The problem is that you need to do the count with numbers not words
Answer:
In the given program the function work properly and the code for remainder section calculation can be given as:
Code:
This code is written inside the function in conditional statement block
else if (op == "%") //check condition
result = numberOne % numberTwo; //holds value in result variable.
Explanation:
The description of the code can be given as:
- In the given program a function "performOperation" is defined that accepts three variable in which two values is number and one is sign value inside a function in the conditional statement section we add code for calculating remainder that can be defined above. This function will calculate a value and return the value.
- In the main method, we declare a variable that is "numberOne, numberTwo, and operation" these three variables are used to take input from the user and passed into the function. To hold function return value we define a variable that is the result that holds function value and prints its value.
It can make ur eyes blind blind that’s a disadvantage
Answer:
thanks :)
Explanation: pls mark brainliest :)