using System;
namespace Articulos.Preguntas.P0820
{
public sealed class Usocontinue
{
public static void Main()
{
for (int i = 1; i<= 10; ++i)
{
// Mientras que el valor de `i`
// sea menor o igual a 5 se omiten
// las sentencias por delante del
// bloque `if`:
if (i <= 5)
{
continue;
}
Tarea (i);
}
}
// Método que lleva a cabo una tarea sobre
// el valor actual de una variable de
// un ciclo for:
private static void Tarea(int i)
{
Console.WriteLine ("{0}", i.ToString());
}
}
}
dXNpbmcgU3lzdGVtOwoKbmFtZXNwYWNlIEFydGljdWxvcy5QcmVndW50YXMuUDA4MjAKewogICAgcHVibGljIHNlYWxlZCBjbGFzcyBVc29jb250aW51ZQogICAgewogICAgICAgIHB1YmxpYyBzdGF0aWMgdm9pZCBNYWluKCkKICAgICAgICB7CiAgICAgICAgICAgIGZvciAoaW50IGkgPSAxOyBpPD0gMTA7ICsraSkKICAgICAgICAgICAgewogICAgICAgICAgICAgICAgLy8gTWllbnRyYXMgcXVlIGVsIHZhbG9yIGRlIGBpYCAKICAgICAgICAgICAgICAgIC8vIHNlYSBtZW5vciBvIGlndWFsIGEgNSBzZSBvbWl0ZW4gCiAgICAgICAgICAgICAgICAvLyBsYXMgc2VudGVuY2lhcyBwb3IgZGVsYW50ZSBkZWwgCiAgICAgICAgICAgICAgICAvLyBibG9xdWUgYGlmYDoKICAgICAgICAgICAgICAgIGlmIChpIDw9IDUpCiAgICAgICAgICAgICAgICB7CiAgICAgICAgICAgICAgICAgICAgY29udGludWU7CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgIFRhcmVhIChpKTsKICAgICAgICAgICAgfQogICAgICAgIH0KICAgICAgICAKICAgICAgICAvLyBNw6l0b2RvIHF1ZSBsbGV2YSBhIGNhYm8gdW5hIHRhcmVhIHNvYnJlIAogICAgICAgIC8vIGVsIHZhbG9yIGFjdHVhbCBkZSB1bmEgdmFyaWFibGUgZGUgCiAgICAgICAgLy8gdW4gY2ljbG8gZm9yOgogICAgICAgIHByaXZhdGUgc3RhdGljIHZvaWQgVGFyZWEoaW50IGkpCiAgICAgICAgewogICAgICAgICAgICBDb25zb2xlLldyaXRlTGluZSAoInswfSIsIGkuVG9TdHJpbmcoKSk7CiAgICAgICAgfQogICAgfQp9