Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Solution {
- /**
- * @param a an integer
- * @param b an integer
- * @param c an integer
- * @return an integer
- */
- public int maxOfThreeNumbers(int a, int b, int c) {
- if (a >= b && a >= c) {
- return a;
- } else if (b >= a && b >= c) {
- return b;
- } else {
- return c;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment