Zo Has - 4 months ago 65

C# Question

I am having this simple calculation returning zero can't figure it out

`decimal share=(18 / 58)*100;`

Answer

You are working with integers here. Try using decimals for all the numbers in your calculation.

```
decimal share = (18m/58m)*100m;
```