Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions C++/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"files.associations": {
"iostream": "cpp"
}
}
25 changes: 25 additions & 0 deletions C++/12.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
// 12. Program to Find the Largest Number Among Three Numbers

#include<iostream>
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<<a<<endl;
else
cout<<c<<endl;
}
else{
if(b>c)
cout<<b<<endl;
else
cout<<c<<endl;
}
return 0;
}