View Code of Problem 68

#include<iostream>
using namespace std;
 int main(){
	 int a,b,c;
	 scanf("%d %d %d",&a,&b,&c);
	 if(b>a)
	 {
	 	if(b>c)
	 		cout<<b;
	 	else if(c>b)
	 			cout<<c;
	 }
	 else {
	 	if(a>c)
	 		cout<<a;
	 	else if(c>a)
	 		cout<<c;
	 }
 	return 0;
 }

Double click to view unformatted code.


Back to problem 68