Website Summary Files Commits Branches @commit @diff @stats
path: root / pract_SI / Pract. 04 / Solutions / task2 - example1.cpp
diff options
context:
space:
mode:
1 files changed, 1 insertions, 9 deletions
-rw-r--r--pract_SI/Pract. 04/Solutions/task2 - example1.cpp10
diff --git a/pract_SI/Pract. 04/Solutions/task2 - example1.cpp b/pract_SI/Pract. 04/Solutions/task2 - example1.cpp
index 309e68d..25b4030 100644
--- a/pract_SI/Pract. 04/Solutions/task2 - example1.cpp
+++ b/pract_SI/Pract. 04/Solutions/task2 - example1.cpp
@@ -1,16 +1,8 @@
#include <iostream>
using namespace std;
-bool isZero(const int number)
-{
- return (number == 0);
-}
-bool isEven(const int number)
+bool isEven(int number)
{
- if (isZero(number))
- {
- return false;
- }
return !(number % 2);
}