Website Summary Files Commits Branches @commit @diff @stats
path: root / pract_SI / Pract. 04 / Solutions / task3.cpp
diff options
context:
space:
mode:
1 files changed, 1 insertions, 3 deletions
-rw-r--r--pract_SI/Pract. 04/Solutions/task3.cpp4
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