Tushar Goel wrote:salvin, we dont provide solutions... We let OP to find the solution..
Agree, the exponent will be int (Or perhaps long?) since both number and exponent are int.Campbell Ritchie wrote:And why are you using the keyword float?
There are three kinds of actuaries: those who can count, and those who can't.
Vin Ash wrote:Writing a program but I can't use math power...
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
All things are lawful, but not all things are profitable.
Vin Ash wrote:
The teacher told us it was simple and you can figure this out on your own
but so far what you guys are writing , it doesn't
Hang on. Shouldn't you create a method to calculate power? You crammed everything to one method "main". Remember, method name suppose to reveal its intention why is he for. I'd think create method with the technique shown earlier and name it puisPower or something. Not sure what this puis mean, btu anyway, give something meaningful.Vin Ash wrote:Here is my finished code and it works
What? What, what, what? What what tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
|