Skip to content

Commit

Permalink
Create sum -Factorial digit.md
Browse files Browse the repository at this point in the history
  • Loading branch information
TANIYA GUPTA authored Oct 14, 2018
1 parent 2a1b98f commit f7c7bd9
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions ASSIGNMENTS/sum -Factorial digit.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
Find the sum of the digits in the number N!

#### Input Format

First line contains <b>T</b> that denotes the number of test cases. This is followed by <b>T</b> lines, each containing an integer,<b>N</b> .


#### Output Format

Print the required answer for each test case.

#### CONSTRAINTS
1≤ T ≤ 100

0≤ N ≤ 1000

#### Sample Input
```
2
3
6
```

#### Sample Output
```
6
9
```

0 comments on commit f7c7bd9

Please sign in to comment.