View Code of Problem 68

#include<bits/stdc++.h>
using namespace std;
int main(){
	int a,b,c,t=0;
	cin>>a>>b>>c;
	if(a>b){
		if(c>a)
		t=c;
		else if(c<a)
		t=a;
	}
	else if(a<b){
		if(b>c)
		t=b;
		else if(b<c)
		t=c;
	}
	cout<<t;
}

Double click to view unformatted code.


Back to problem 68