Skip to content

Commit e6fe434

Browse files
authored
Update functions.md
Change factorial of 0.
1 parent d22b36d commit e6fe434

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

assignments/functions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ Factorial of any number n is represented by n! and is equal to 1*2*3*....*(n-1)*
3131
2! = 2*1 = 2
3232
Also,
3333
1! = 1
34-
0! = 0
34+
0! = 1
3535

3636
10. Write a function to find if a number if palindrome or not. Take number as parameter.
3737

38-
11. Convert the programs in [flow of program](flow-of-program.md), [conditionals & loops](conditionals-loops.md), [first java](first-java.md) assignemts into functions.
38+
11. Convert the programs in [flow of program](flow-of-program.md), [conditionals & loops](conditionals-loops.md), [first java](first-java.md) assignemts into functions.

0 commit comments

Comments
 (0)