From 87eb15e11b8db14640977baa00b98b01826584cd Mon Sep 17 00:00:00 2001 From: vil02 <65706193+vil02@users.noreply.github.com> Date: Fri, 26 Sep 2025 16:39:37 +0200 Subject: [PATCH] style: remove interaction with the user Helps with #2753 --- math/number_of_positive_divisors.cpp | 9 --------- 1 file changed, 9 deletions(-) diff --git a/math/number_of_positive_divisors.cpp b/math/number_of_positive_divisors.cpp index 9407c4dc8d0..6d8f8589678 100644 --- a/math/number_of_positive_divisors.cpp +++ b/math/number_of_positive_divisors.cpp @@ -23,7 +23,6 @@ **/ #include -#include /** * Function to compute the number of positive divisors. @@ -80,13 +79,5 @@ void tests() { */ int main() { tests(); - int n; - std::cin >> n; - if (n == 0) { - std::cout << "All non-zero numbers are divisors of 0 !" << std::endl; - } else { - std::cout << "Number of positive divisors is : "; - std::cout << number_of_positive_divisors(n) << std::endl; - } return 0; }