count_or.js 176 B

1234567891011
  1. function count_sum(quanity, price){
  2. if(quanity > 0 & price >0 ){
  3. return (quanity * price);
  4. }
  5. else{
  6. return 0;
  7. }
  8. }
  9. module.exports = count_sum;