Skip to content

Instantly share code, notes, and snippets.

@Fhernd
Created October 2, 2013 02:58
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 Fhernd/6788514 to your computer and use it in GitHub Desktop.
Save Fhernd/6788514 to your computer and use it in GitHub Desktop.
Demostración del uso de la sentencia repetivia do-while.
class PruebaDoWhile
{
static void Main()
{
do
{
Console.WriteLine ("Seleccione opción del menú: ");
Console.WriteLine ("1. Descargar vídeo");
Console.WriteLine ("2. Eliminar vídeo");
Console.WriteLine ("3. Editar vídeo");
Console.WriteLine ("4. Subir vídeo");
Console.WriteLine ("5. Salir del programa");
int opcion = Convert.ToInt32( Console.ReadLine() );
} while ( opcion != 5 );
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment