Website Summary Files Commits Branches @commit @diff @stats
path: root / Sem. 04 / Solutions / exercise01.cpp
blob: edc9c9c95414fdd0bd4c138934440cb4f85cc396 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#include <iostream>
using namespace std;

int mod(int n)
{
	return n < 0 ? -n : n;
}
int main()
{
	cout << mod(-4) << endl;
}