Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.example.utils;
- public class MyMath {
- public static long Factorial(long l) {
- if (l > 1)
- return l * Factorial(l - 1);
- else
- return 1;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement