index
:
FMI/Introduction_to_programming_FMI
main
sem03-solutions
sem06-solutions
sem07-solutions
[MIRROR] Repository with examples for the "Introduction To Programming" course given by me @ Faculty of Mathematics and Informatics, Sofia University
Website
Summary
Files
Commits
Branches
@commit
@diff
@stats
log msg
author
committer
range
path:
root
/
pract_SI
/
Pract. 04
/
Solutions
/
task4 - fabs.cpp
blob: bb2f15b67c31a7e37f0567a1e8c7139da298ea04 (
plain
) (
blame
)
1
2
3
4
double
fabs
(
double
&
num
)
{
return
num
>
0.0
?
num
: -
num
;
}