From 1a5917ba688632a0eb4b6f1392343c4d4bc09525 Mon Sep 17 00:00:00 2001 From: AmanTech07 Date: Sat, 9 Oct 2021 04:09:43 +0530 Subject: [PATCH] Add C++ code for Q12 --- C++/.vscode/settings.json | 5 +++++ C++/12.cpp | 25 +++++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 C++/.vscode/settings.json diff --git a/C++/.vscode/settings.json b/C++/.vscode/settings.json new file mode 100644 index 0000000..0cba2e6 --- /dev/null +++ b/C++/.vscode/settings.json @@ -0,0 +1,5 @@ +{ + "files.associations": { + "iostream": "cpp" + } +} \ No newline at end of file diff --git a/C++/12.cpp b/C++/12.cpp index e69de29..b27be1b 100644 --- a/C++/12.cpp +++ b/C++/12.cpp @@ -0,0 +1,25 @@ +// 12. Program to Find the Largest Number Among Three Numbers + +#include +using namespace std; + +int main() +{ + int a, b, c; + cout<<"Please Enter Three Numbers : "; + cin>>a>>b>>c; + cout<<"Largest Number Among all three numbers are : "; + if(a>b){ + if(a>c) + cout<c) + cout<