+ 2

How to declare variables in the switch statement in c#?

How do you calculate in a switch statement if you have a question for calculating a number of children, the question can be {0} child - 5% , of monthly salary {1} child - 8% of monthly salary ,{2} child -10% of monthly salary and more than three children receives about 15% monthly salary? and monthly salary is about 10500 . which data type will it be ,is it an integer or a double?

21st Apr 2017, 2:49 AM
Innocentia mia
Innocentia mia - avatar
1 Respuesta
21st Apr 2017, 3:37 AM
Ulisses Cruz
Ulisses Cruz - avatar