id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

zbaharav@kehillah.org primeandfactorial > zFactorial
prev  |  next  |  chance

Write a function zFactorial, that given an input integer n greater than 0, returns the value of n!.


zFactorial(3) → 6
zFactorial(2) → 2
zFactorial(14) → 87178291200

...Save, Compile, Run (ctrl-enter)

public int zFactorial(int n){ }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Difficulty: 200

Copyright Nick Parlante 2017 - privacy