Skip to content

Instantly share code, notes, and snippets.

@Fhernd
Created August 13, 2013 12:19
Show Gist options
  • Save Fhernd/6220546 to your computer and use it in GitHub Desktop.
Save Fhernd/6220546 to your computer and use it in GitHub Desktop.
Uso del operador ternario (o condicional) en C#.
class OperadorCondicional
{
public static int Maximo (int numero1, int numero2)
{
return (numero1 > numero2) ? numero1 : numero2;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment