<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><DIV>Hola, ¿alguien me puede explicar la diferencia entre los tres tipos de bucles. Porque es igual esto:</DIV>
<DIV> </DIV>
<DIV><FONT face="tahoma, new york, times, serif" color=#0000ff>#include<iostream></FONT></DIV>
<DIV><FONT face="tahoma, new york, times, serif" color=#0000ff>using namespace std;</FONT></DIV>
<DIV><FONT face="tahoma, new york, times, serif" color=#0000ff></FONT> </DIV>
<DIV><FONT face="tahoma, new york, times, serif" color=#0000ff>int main()<BR>{</FONT></DIV>
<DIV><FONT face="tahoma, new york, times, serif" color=#0000ff>    int x;</FONT></DIV>
<DIV><FONT face="tahoma, new york, times, serif" color=#0000ff></FONT> </DIV>
<DIV><FONT face="tahoma, new york, times, serif" color=#0000ff>    for(x = 0; x < 10; x ++)</FONT></DIV>
<DIV><FONT face="tahoma, new york, times, serif" color=#0000ff>    {</FONT></DIV>
<DIV><FONT face="tahoma, new york, times, serif" color=#0000ff>        cout << x;</FONT></DIV>
<DIV><FONT face="tahoma, new york, times, serif" color=#0000ff>    }</FONT></DIV>
<DIV><FONT face="tahoma, new york, times, serif" color=#0000ff></FONT> </DIV>
<DIV><FONT face="tahoma, new york, times, serif" color=#0000ff>    cin.get();</FONT></DIV>
<DIV><FONT face="tahoma, new york, times, serif" color=#0000ff>    return 0;</FONT></DIV>
<DIV><FONT face="tahoma, new york, times, serif" color=#0000ff>}</FONT></DIV>
<DIV> </DIV>
<DIV>Que esto:</DIV>
<DIV> </DIV>
<DIV>
<DIV><FONT face="tahoma, new york, times, serif" color=#0000ff>#include<iostream></FONT></DIV>
<DIV><FONT face="tahoma, new york, times, serif" color=#0000ff>using namespace std;</FONT></DIV>
<DIV><FONT face="tahoma, new york, times, serif" color=#0000ff> </FONT></DIV>
<DIV><FONT face="tahoma, new york, times, serif" color=#0000ff>int main()<BR>{</FONT></DIV>
<DIV><FONT face="tahoma, new york, times, serif" color=#0000ff>    int x = 0;</FONT></DIV>
<DIV><FONT face="tahoma, new york, times, serif" color=#0000ff> </FONT></DIV>
<DIV><FONT face="tahoma, new york, times, serif" color=#0000ff>    while(x < 10)</FONT></DIV>
<DIV><FONT face="tahoma, new york, times, serif" color=#0000ff>    {</FONT></DIV>
<DIV><FONT face="tahoma, new york, times, serif" color=#0000ff>        cout << x;</FONT></DIV>
<DIV><FONT face="tahoma, new york, times, serif" color=#0000ff>        x ++;</FONT></DIV>
<DIV><FONT face="tahoma, new york, times, serif" color=#0000ff>    }</FONT></DIV>
<DIV><FONT face="tahoma, new york, times, serif" color=#0000ff> </FONT></DIV>
<DIV><FONT face="tahoma, new york, times, serif" color=#0000ff>    cin.get();</FONT></DIV>
<DIV><FONT face="tahoma, new york, times, serif" color=#0000ff>    return 0;</FONT></DIV>
<DIV><FONT face="tahoma, new york, times, serif" color=#0000ff>}</FONT></DIV>
<DIV><FONT face=Tahoma color=#0000ff></FONT> </DIV>
<DIV><FONT face="times new roman, new york, times, serif">Un saludo y gracias, Alejandro y Santiago.</FONT></DIV></DIV></div><br>
                <hr size=1><br><font face="Verdana" size="-2">LLama Gratis a cualquier PC del Mundo.<br>Llamadas a fijos y móviles desde 1 céntimo por minuto.<br><a href="http://us.rd.yahoo.com/mail/es/tagline/messenger/*http://es.voice.yahoo.com/">http://es.voice.yahoo.com</a></font></body></html>