Skip to content

Instantly share code, notes, and snippets.

@Manume
Last active August 29, 2015 14:01
Show Gist options
  • Save Manume/c765e5591be618519427 to your computer and use it in GitHub Desktop.
Save Manume/c765e5591be618519427 to your computer and use it in GitHub Desktop.
biggest amoung three numbers
#include <iostream.h>
#include <conio.h>
int main()
{
clrscr();
int x,y,z,biggest;
cout << "Enter 3 integers : ";
cin>>x>>y>>z;
biggest=x>y?(x>z?x:z):(y>z?y:z);
cout << "The biggest integer out of the 3 integers you typed ";
cout << x << ", " << y << " & " << z << " is : " << "\n" << biggest << "\n";
getch();
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment