fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main(){
  5. // your code goes here
  6. int a,b,c,g;
  7. cout<<"Enter 3 numbers"<<endl;
  8. cin>>a>>b>>c;
  9.  
  10.  
  11. if(a>c&&a>b){
  12. g=a;
  13. }
  14.  
  15. if(c>a&&c>b){
  16. g=c;
  17. }
  18.  
  19. if(b>a&&b>c){
  20. g=b;
  21. }
  22. cout<<g;
  23.  
  24.  
  25.  
  26. return 0;
  27. }
Success #stdin #stdout 0s 16064KB
stdin
16
34
167
stdout
Enter 3 numbers
167