Untitled

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