Skip to content

Commit bde09c2

Browse files
style: remove interaction with the user (TheAlgorithms#3006)
Helps with TheAlgorithms#2753 Co-authored-by: realstealthninja <[email protected]>
1 parent a2efdcb commit bde09c2

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

math/number_of_positive_divisors.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
**/
2424

2525
#include <cassert>
26-
#include <iostream>
2726

2827
/**
2928
* Function to compute the number of positive divisors.
@@ -80,13 +79,5 @@ void tests() {
8079
*/
8180
int main() {
8281
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-
}
9182
return 0;
9283
}

0 commit comments

Comments
 (0)