Untitled

mail@pastecode.io avatar
unknown
c_cpp
8 months ago
268 B
0
Indexable
Never
#include <iostream>
using namespace std;
int main() {
	int a, b, c, min, max;
	cin >> a >> b >> c;
	min = a;
	if (b < min)
		min = b;
	if (c < min)
		min = c;
	max = a;
	if (b > max)
		max = b;
	if (c > max)
		max = c;
	cout << max - min;
	return 0;
}