forked from hackerearthclub/CODE2RACE
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
TANIYA GUPTA
authored
Oct 14, 2018
1 parent
2a1b98f
commit f7c7bd9
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
``` |