return 0;
}
the problem i am having is when i enter the bill amount every time i get a different answer as the Tip amount. Can anyone help me figure out why everytime i get a random number as an answer?
You have to get in the bill amount before you do the calculation.
The reason you're getting random numbers is because at the point where you're doing the calculation, the "bill" variable contains garbage (and by garbage, I mean whatever value is at that memory address).