adding percentage to calculator
-
is this the write way to add percentage case 5 : dReg = aReg /dreg x 100; aReg = dReg; break; or do I need to add more
-
What do you mean, to add percentage? case 5 : dReg = (aReg /dreg) x 100; aReg = dReg; break; Seems ok in calculating a percentage but what do you mean by 'add'?
-
is this the write way to add percentage case 5 : dReg = aReg /dreg x 100; aReg = dReg; break; or do I need to add more
if '
x
' is actually '*
', then it looks correct, provideddReg
andaReg
are what they appear to be. :)If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles]