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.cpp
blob: 771550bea381c440fb73e361cb9bef87b65b7dd9 (
plain
) (
blame
)
1
2
3
4
int
abs
(
int
num1
,
int
num2
)
{
return
((
num1
-
num2
) >=
0
? (
num1
-
num2
) : (
num2
-
num1
));
}