Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
vkpoet authored Oct 12, 2022
1 parent a653a7c commit 80615dd
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions doc/coding.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#include<iostream>
using namespace std;

int main(){
#ifndef ONLINE_JUDGE
freopen("input.txt","r", stdin);
freopen("output.txt","w", stdout);
#endif

int a,b,c;
cin>>a>>b>>c;
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;
}

0 comments on commit 80615dd

Please sign in to comment.