I am trying to make a calculator program using addition only...I have made the code for multiplication, but am having trouble with - and division.
I created division with just subtraction but can't figure it out with addition.
heres my one example:
insertCode:int divide, divis, quotient; printf("Enter Number 1:"); scanf("%d", ÷); printf("Enter Number 2:"); scanf("%d", &divis); quotient=0; while(divide > 0){ divide = divide - divis; quotient++; } printf("%d\n, quotient);