tax
is an int
and you are trying to assign it a float
value.
You either have to declare tax
as a float
/ double
/ decimal
or somehow round its value.
EDIT: It's also weird how you don't initialize the value of money
, use Console.ReadLine()
, and parse its return value