<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
<div><br></div><div>Hola de nuevo y a peticion de algunos usuarios de ser mas claro para disponer de la ayuda</div><div><br></div><div>Aqui doy el codigo que he escrito pero no me presenta nada en pantalla he intentado el algoritmo en php pero no me presenta los numeros primos que es lo que deseo solamente que se muestren solo los numeros primos espero ser lo bastante claro en cuanto al otro problema lo explicare mas adelante a detalle ya que aun no lo completo</div><div><br></div><div><br></div><div><div>#include <iostream></div><div>using namespace std;</div><div><br></div><div>int v1, v2, a, b, i;</div><div><br></div><div><br></div><div>int main ()</div><div>{</div></div><div><div>v1=0;</div><div>v2=0;</div><div>cout << "Ingresa un valor entre 0 y 200" << endl;</div><div>cin >> v1;</div><div>cout << "Ingresa un valor entre 0 y 200" << endl;</div><div>cin >> v2;</div><div>        </div><div>if(v1<v2)</div><div>{</div><div>  for(a=v1; a<=v2; a++)</div><div>  {</div><div>    for ( i=0; i<=10; i++)</div><div>    {</div><div>      if ((a%i!=0)&&(a%i!=2))</div><div>      {}</div><div>    cout << a << endl;</div><div>    }</div><div>  }</div><div>}</div><div>if(v1>v2)</div><div><div style="text-indent: 0in !important; ">{</div><div style="text-indent: 0in !important; ">  for(a=v2; a<=v1; a++)</div><div style="text-indent: 0in !important; ">  {</div><div style="text-indent: 0in !important; ">    for ( i=0; i<=10; i++)</div><div style="text-indent: 0in !important; ">    {</div><div style="text-indent: 0in !important; ">      if ((a%i!=0)&&(a%i!=0))</div><div style="text-indent: 0in !important; ">      {}</div><div style="text-indent: 0in !important; ">    cout << a << endl;</div><div style="text-indent: 0in !important; ">    }</div><div style="text-indent: 0in !important; ">  }</div><div style="text-indent: 0in !important; ">}</div><div style="text-indent: 0in !important; ">system ("pause");</div><div style="text-indent: 0in !important; ">return 0;</div><div style="text-indent: 0in !important; ">}</div></div></div>                                     <br /><hr />Soy como quiero ser <a href='www.vivirmessenger.com' target='_new'>en mi Messenger</a></body>
</html>