Why is there no semi-colon on the end of return 0 ?
This condition if (kwh<500)
is the same as this one elseif (kwh<500)
You are asking the user to enter the cost at the end, after you've already calculated it.
Your code is confused and inconsistent and implies that you don't really understand the syntax. You should go back to the tutorial and start learning C++.