diff options
Added Solutions Pract.04
1 files changed, 4 insertions, 0 deletions
| -rw-r--r-- | pract_SI/Pract. 04/Solutions/task4 - fabs.cpp | 4 |
diff --git a/pract_SI/Pract. 04/Solutions/task4 - fabs.cpp b/pract_SI/Pract. 04/Solutions/task4 - fabs.cpp new file mode 100644 index 0000000..bb2f15b --- /dev/null +++ b/pract_SI/Pract. 04/Solutions/task4 - fabs.cpp @@ -0,0 +1,4 @@ +double fabs(double &num) +{ + return num > 0.0 ? num : -num; +}
\ No newline at end of file |
