Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vietduchelo/36116c96f165b1a66d330285b2f80f5e to your computer and use it in GitHub Desktop.
Save vietduchelo/36116c96f165b1a66d330285b2f80f5e to your computer and use it in GitHub Desktop.
#include <iostream>
#include <stdlib.h>
using namespace std;
int main()
{
int a,b,c;
cout << "nhap 3 so a,b,c : ";
cin >> a >> b >> c;
cout << "so lon nhat trong 3 so la: " << (a>b ? (a>c ? a : c) : (b>c ? b : c)) << endl;
system("PAUSE");
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment