can anyone help me, how can you calculate the percentage of a number using c for example 289.78 + 17.5%. it may seem simple to someone out there but its been driving me mad.
can anyone help me, how can you calculate the percentage of a number using c for example 289.78 + 17.5%. it may seem simple to someone out there but its been driving me mad.
its that simple
You should be able to fugure that out yourself. Think about it:
17.5% of 289.78 is 0.175 * 289.78. The total of them is:
289.78+ (0.175*289.78)=?
Or even easier to add 17.5%:
289.78 * 1.175 = ....
When all else fails, read the instructions.
If you're posting code, use code tags: [code] /* insert code here */ [/code]