joseleonweb

Untitled

Feb 2nd, 2021
514
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public static void main(String[] args) {
  2.         recurseMethod(4);
  3.         factorial(5);
  4.     }//end method main
  5.    
  6. public static double factorial(double d) {
  7.     //Sort elements by title case.
  8.     if (d <= 1) {
  9.         return 1;
  10.     }
  11.     else {
  12.         return d * factorial(d - 1);
  13.     }//endif
  14. }//end method factorial
  15.    
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×