diff --git a/Second max.cpp b/Second max.cpp new file mode 100644 index 0000000..e154451 --- /dev/null +++ b/Second max.cpp @@ -0,0 +1,22 @@ +//c++ program to fing the second maximum of three numbers +#include +using namespace std; + +int main() { + int t ; + cin>>t; + int a ,b, c; + while(t--){ + cin>>a>>b>>c; + if(ac || ab){ + cout<c||b>a&&b