Skip to content

Commit

Permalink
Added spaces in Q.9 in order to avoid italicizing
Browse files Browse the repository at this point in the history
Factorials were explained like 4! = 4[asterisk]3[asterisk]2[asterisk]1, which lead to some characters becoming italicized.
  • Loading branch information
ShaDe2312 authored Aug 24, 2021
1 parent da71f5b commit 5ba1049
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions assignments/4-functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ Marks Grade
<=40 Fail

9. Write a program to print the factorial of a number by defining a method named 'Factorial'.
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
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
Also,
1! = 1
0! = 1
Expand Down

0 comments on commit 5ba1049

Please sign in to comment.