From 627534742b0fcc94132d4bb13d6a4cc0b51c3d88 Mon Sep 17 00:00:00 2001 From: Justsvetoslavov Date: Fri, 5 Nov 2021 13:35:59 +0200 Subject: Added Solutions --- pract_SI/Pract. 04/Solutions/task3 - isNegative().cpp | 4 ++++ pract_SI/Pract. 04/Solutions/task3 - isPositive().cpp | 4 ++++ pract_SI/Pract. 04/Solutions/task3.cpp | 4 ---- pract_SI/Pract. 04/Solutions/task6.cpp | 4 ++++ 4 files changed, 12 insertions(+), 4 deletions(-) create mode 100644 pract_SI/Pract. 04/Solutions/task3 - isNegative().cpp create mode 100644 pract_SI/Pract. 04/Solutions/task3 - isPositive().cpp delete mode 100644 pract_SI/Pract. 04/Solutions/task3.cpp create mode 100644 pract_SI/Pract. 04/Solutions/task6.cpp (limited to 'pract_SI') diff --git a/pract_SI/Pract. 04/Solutions/task3 - isNegative().cpp b/pract_SI/Pract. 04/Solutions/task3 - isNegative().cpp new file mode 100644 index 0000000..6ca43c5 --- /dev/null +++ b/pract_SI/Pract. 04/Solutions/task3 - isNegative().cpp @@ -0,0 +1,4 @@ +bool isNegative(int num) +{ + return num < 0; +} \ No newline at end of file diff --git a/pract_SI/Pract. 04/Solutions/task3 - isPositive().cpp b/pract_SI/Pract. 04/Solutions/task3 - isPositive().cpp new file mode 100644 index 0000000..937b833 --- /dev/null +++ b/pract_SI/Pract. 04/Solutions/task3 - isPositive().cpp @@ -0,0 +1,4 @@ +bool isPositive(int num) +{ + return (num > 0); +} \ No newline at end of file diff --git a/pract_SI/Pract. 04/Solutions/task3.cpp b/pract_SI/Pract. 04/Solutions/task3.cpp deleted file mode 100644 index 937b833..0000000 --- a/pract_SI/Pract. 04/Solutions/task3.cpp +++ /dev/null @@ -1,4 +0,0 @@ -bool isPositive(int num) -{ - return (num > 0); -} \ No newline at end of file diff --git a/pract_SI/Pract. 04/Solutions/task6.cpp b/pract_SI/Pract. 04/Solutions/task6.cpp new file mode 100644 index 0000000..cbca3de --- /dev/null +++ b/pract_SI/Pract. 04/Solutions/task6.cpp @@ -0,0 +1,4 @@ +bool isCapitalLetter(char S) +{ + return (S >= 'A' && S <= 'Z'); +} \ No newline at end of file -- cgit v1.3.1-23-gd82d