I want to input the hours worked and number of dependents
Then i will do few calculations to calculate the taxes and net pay
And should store these values in the predefined variables taxes and net_pay
How can i do so !
You should probably make a switch for the symbol:
switch(symbol) {
case '+': total = num1 + num2; break;
case '-': total = num1 - num2; break;
//You get the idea...
}
Roxifλsz 🇱🇹
Also you should make your sim function return the symbol