From 99905d88c0e6c4c35472a9058e256883d19f4afd Mon Sep 17 00:00:00 2001 From: Justsvetoslavov Date: Wed, 3 Nov 2021 02:18:52 +0200 Subject: Update/Refactor --- pract_SI/Pract. 04/Solutions/task3.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'pract_SI/Pract. 04/Solutions/task3.cpp') diff --git a/pract_SI/Pract. 04/Solutions/task3.cpp b/pract_SI/Pract. 04/Solutions/task3.cpp index 60622e2..937b833 100644 --- a/pract_SI/Pract. 04/Solutions/task3.cpp +++ b/pract_SI/Pract. 04/Solutions/task3.cpp @@ -1,6 +1,4 @@ bool isPositive(int num) { - if (num <= 0) - return false; - return true; + return (num > 0); } \ No newline at end of file -- cgit v1.3.1-23-gd82d