From a43727c44eaeb3164f3ce289a7d08d2974b2a59a Mon Sep 17 00:00:00 2001 From: Justsvetoslavov Date: Wed, 3 Nov 2021 02:10:08 +0200 Subject: Update Pract. Solutions --- pract_SI/Pract. 04/Solutions/task2 - example1.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'pract_SI/Pract. 04/Solutions/task2 - example1.cpp') 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 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); } -- cgit v1.3.1-23-gd82d