Can't get anything but $0 from a call to a method to calculate a taxAmount

前端 未结 5 501
-上瘾入骨i
-上瘾入骨i 2021-01-22 11:00

I am having trouble with this following call, specially the last component:

Console.WriteLine(\"Taxpayer # {0} SSN: {1}, Income is {2:c}, Tax is {3:c}\", i + 1,          


        
5条回答
  •  别那么骄傲
    2021-01-22 11:49

    You sure lowTaxRate and highTaxRate are not set to 0 because anything multiplied by 0 is 0. Put some debuggers/MessageBoxes to check that.

提交回复
热议问题