why can't we use the sum function as it is used in product solution
why can't we use sum=num_1+num_2
but we used product=num_1*num_2
1 answers ( 0 marked as helpful)
Absolutely you can use the same way. it depends on your code and its efficiency and if you will reuse it again or not.