Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int divide (int dividend, int divisor) {
- int quotient;
- while ((dividend -= divisor) != 0) {
- quotient++;
- }
- return quotient;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement