Number of factors
Submissions: 2658   Accuracy:

59.63%

  Difficulty: School   Marks: 0
*School Problem's Submission isn't counted in score!

Find number of factors for a given integer N.

Input:
The first line of input contains an integer, the number of testcases T. Each testcase should contain a positive integer N.

Output:
In each separate line print the number of factors (including 1 and the number itself).

Constraints:
1 <= T <= 30
1 <= N <= 100

Example:
Input:
1
5

Output:
2

Explanation:
Testcase 1:
Factors of 5 are: 1 and 5.

** For More Input/Output Examples Use 'Expected Output' option **

Author: abhiraj26


If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.



Need help with your code? Please use ide.geeksforgeeks.org, generate link and share the link here.

to report an issue on this page.