In practice I have this code and it seems very tiring to do all those if there is a way to make it easier? But that it works correctly? Because this code not only has * (multipl