0
create a zakat calculator . A person enters his savings that he is kept for one whole year . If his saving is more than 300000 then 2.5% should ne detected otherwise no deduction ahould be made .
visual programming c# please help me to solve it.
1 Odpowiedź
+ 1
Do a loop, ask for input inside it, and add inputs to a variable sum (previously initialized to 0) loop after loop, exiting the loop if a negative number is entered (without adding it to sum). Then check if sum is greater than 300000, and if so, multiply sum by 0.975. Return or print sum.