Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Ex: 3,5 output ====> 15
- //Ex: 10,5 output ====> 50
- const productOfTwoInt = (int,int2) => {
- let result_one = 0;
- let reuslt_two = 0;
- let final_result;
- let final_result2;
- for(var x = 0; x <= int; x++){
- final_result = x += result_one
- console.log("what",final_result)
- }
- for(var j = 0; j <= int2; j++){
- final_result2 = j += reuslt_two
- }
- return final_result + final_result2
- }
- console.log(productOfTwoInt(3,5))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement