you can choose as many checkboxes as the number written in the textbox.
hello,
I want to simplify this code
How does it work;
you can choose as many checkboxes as the number written in the textbox. as you choose that number, the number will decrease by the selected amount. for example, the number 2 is written in the textbox; when you choose 2 checkboxes, the number in the textbox will decrease by the selected number. It continues in the form of a loop.