If
if(condicion)if(condicion)
{
instrucciones;
}
if(condicion)
instruccion1;
instruccion 2;
if
(a>b)
>=
<=
!=
==
if(a>b)&&(b>c)
if(a>b)||(b>c)
If-Else
if(condicion)
{
}
else
instruccion;
if(condicion)
(>,<,>=,<=,!=,==)&&(condicion)
{
}
else
instruccion;
if(condicion)
(>,<,>=,<=,!=,==)&&(condicion)
Switchs
Switch (a){case 1: Instrucciones;
break;
case 2: Instrucciones;
break;
case 3: Instrucciones;
break;
default: instrucciones;
break;
default: instrucciones;
For
For (J=0;J=10;J++){Cout<<"HOLA";
}
For(J=10;J>=0;J--)
No hay comentarios.:
Publicar un comentario