Advertisement
Guest User

Untitled

a guest
Nov 20th, 2017
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.38 KB | None | 0 0
  1. /**
  2. * Decreases a number by one
  3. * @param x number that should be decreased
  4. * @return   number decreased by one
  5. */
  6. public int decrease(int x) {...}
  7.  
  8. /**
  9. * Calculates the factorial of a number. The number must be between 0 and 20,
  10. * else it won't calculate.
  11. * @param n number that should be calculated
  12. * @return   factorial of the number
  13. */
  14. public int factorial(int n) {...}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement