We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da71f5b commit 5ba1049Copy full SHA for 5ba1049
assignments/4-functions.md
@@ -25,10 +25,10 @@ Marks Grade
25
<=40 Fail
26
27
9. Write a program to print the factorial of a number by defining a method named 'Factorial'.
28
-Factorial of any number n is represented by n! and is equal to 1*2*3*....*(n-1)*n. E.g.-
29
-4! = 1*2*3*4 = 24
30
-3! = 3*2*1 = 6
31
-2! = 2*1 = 2
+Factorial of any number n is represented by n! and is equal to 1 * 2 * 3 * .... * (n-1) *n. E.g.-
+4! = 1 * 2 * 3 * 4 = 24
+3! = 3 * 2 * 1 = 6
+2! = 2 * 1 = 2
32
Also,
33
1! = 1
34
0! = 1
0 commit comments