Untitled

mail@pastecode.io avatar
unknown
c_cpp
a year ago
268 B
1
Indexable
#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;
}