From 7713145b7b0059a4db24bc56b9f3a72df050bb42 Mon Sep 17 00:00:00 2001 From: Paras Sharma Date: Mon, 25 Oct 2021 22:26:18 +0530 Subject: [PATCH] finding the second max number from three numbers --- Second max.cpp | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Second max.cpp 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