Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string divide(string a, string b)
- {
- string xtimes = "0";
- while(compare(a, ">=", b))
- {
- a = subtracting(a, b);
- xtimes = adding(xtimes, "1");
- }
- return xtimes;
- }
- string modulo(string a, string b)
- {
- while(compare(a, ">=", b))
- a = subtracting(a, b);
- return a;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement