Skip to content

Instantly share code, notes, and snippets.

@sergiotapia
Last active December 16, 2015 02:09
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save sergiotapia/5360855 to your computer and use it in GitHub Desktop.
Tarea
int cantidadTotalDePanes = 20;
int panesPorCliente = 3;
while (cantidadTotalDePanes > 0) {
if (cantidadTotalDePanes > panesPorCliente) {
Console.WriteLine("Entrego a cliente " + panesPorCliente + " panes.");
cantidadTotalDePanes -= panesPorCliente;
} else {
// Ya no tiene suficientes panes.
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment