answersLogoWhite

0

int divide1(int a,int b)

{

int t=1;

while(b*t<=a)

{

t++;

}

return t-1;

}

User Avatar

Wiki User

13y ago

Still curious? Ask our experts.

Chat with our AI personalities

LaoLao
The path is yours to walk; I am only here to hold up a mirror.
Chat with Lao
BlakeBlake
As your older brother, I've been where you are—maybe not exactly, but close enough.
Chat with Blake
RossRoss
Every question is just a happy little opportunity.
Chat with Ross

Add your answer:

Earn +20 pts
Q: Write a program to divide 2 numbers without using the division operator?
Write your answer...
Submit
Still have questions?
magnify glass
imp