#include<iostream> using namespace std; int main() { int a,b,c; cin>>a>>b>>c; int max=0; int arr[3]={a,b,c}; for(int i=0;i<3;i++) { if(arr[i]>max) { max=arr[i]; } }cout<<max<<endl; }
#include<iostream> using namespace std; #include<algorithm> int main() { int a,b,c; cin>>a>>b>>c; cout<<max(a,(max(b,c))); }