fork download
  1. #include <iostream>
  2. using namespace std;
  3. int main()
  4. {
  5. int a,b,c;
  6. cin>>a>>b>>c;
  7. cout<<"Largest of "<<a<<","<<b<<","<<c<<" is "<<a;
  8. if(a>b&&a>c)
  9. {
  10. cout<<a;
  11. }
  12. else if(b>c)
  13. {
  14. cout<<b;
  15. }
  16. else
  17. {
  18. cout<<c;
  19. }
  20. return 0;
  21. }
  22.  
Success #stdin #stdout 0s 5320KB
stdin
Standard input is empty
stdout
Largest of 21957,-2069642816,32766 is 2195732766