Lowest price ever! Learn Generative AI for 48% less!
Get my discount+ 1
Find the result subtraction, multiplication, division of two integers using + operator. Input: 6 and 4 output:
Find the result subtraction, multiplication, division of two integers using + operator. Input: 6 and 4 output: addition 6+4 = 10, subtraction 6+(-4) = 2, multiplication = 24, division = 1 Input : -8 and -4 Output: addition -8+(-4) = -12, subtraction (-8)+(-(-4)) = -4, multiplication = 32, division = 2
4 Answers
+ 1
multiplication: add 6 4 times or 4 6 times
+ 1
oh and division subtract until 0 and count how many subtractions
6-4 = 2 once
2 - 4 = -2 NOPE
8 - 4 = 4 once
4 - 4 = 0 twice
0 - 4 = -4 NOPE
0
i don't know pls help
0
we want use only + operator and solve add,sub,mul and div