summaryrefslogtreecommitdiff
path: root/6p5.cpp
blob: bcdec0628af23f3b300ab68b10e5e3beef0510bc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#include <iostream>

/*
 *
 * 6.5
 *
 *
 */

int AbsoluteValue(int v) {

	if (v < 0) {
		return -v;
	}

	return v;
}

int main () {

	int v;
	if(std::cin >> v) {} else { return -1; }
	std::cout << AbsoluteValue(v) << std::endl;
	return 0;
}