11727 - Cost Cutting | UVa
Solution :
Develop by Samsus Salehin Sabbir
- #include <iostream>
- using namespace std;
- \\ Find Out Middle Number .. Its A easy problem
- int main(void) {
- long long x , y , z , t;
- cin >> t;
- for(int i=0;i<t;i++){
- cin >> x >> y >> z ;
- if((x>y && x<z) || (x<y && x>z)) cout << "Case " << i+1 << ": " << x << endl;
- else if((y>x && y<z) || (y<x && y>z)) cout << "Case " << i+1 << ": " << y << endl;
- else if((z>x && z<y) || (z<x && z>y)) cout << "Case " << i+1 << ": " << z << endl;
- }
- return 0;
- }
No comments