top of page

Java Edabit: The Modulus Operator Function, Very Easy Difficulty


Solving this question in Edabit: https://edabit.com/challenge/XMWWPeZYeYDfd25Ys

  • I didn't know how to solve this one so I had to find some information on it


question:


solution:


public class ModulusOperator {

public static int mod(int a, int b) {

return a - b * (a / b);

}

}


0 views0 comments
Post: Blog2_Post
bottom of page