We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e72b7aa commit 87eb15eCopy full SHA for 87eb15e
math/number_of_positive_divisors.cpp
@@ -23,7 +23,6 @@
23
**/
24
25
#include <cassert>
26
-#include <iostream>
27
28
/**
29
* Function to compute the number of positive divisors.
@@ -80,13 +79,5 @@ void tests() {
80
79
*/
81
int main() {
82
tests();
83
- int n;
84
- std::cin >> n;
85
- if (n == 0) {
86
- std::cout << "All non-zero numbers are divisors of 0 !" << std::endl;
87
- } else {
88
- std::cout << "Number of positive divisors is : ";
89
- std::cout << number_of_positive_divisors(n) << std::endl;
90
- }
91
return 0;
92
}
0 commit comments