Академический Документы
Профессиональный Документы
Культура Документы
UNISANGIL
LOGICA DE PROGRAMACION
CHIQUINQUIRA BOY
2015
ESTRUCTURA Y CICLOS EN NETBEANS
(IF, FOR, WHILE)
UNISANGIL
PROGRAMACION
INGENIERIA DE SISTEMAS
CHIQUINQUIRA BOY
2015
CONTENIDO
Pg.
1. IF 4
1.1 Estructura 4
1.2 Ejemplo 1 4
1.3 Ejemplo 2 5
2. IF ANIDADO 5
2.1 Estructura 6
2.2 Ejemplo 1 6
2.3 Ejemplo 2 7
3. CICLO FOR 7
3.1 Estructura 7
3.2 Ejemplo 1 8
3.3 Ejemplo 2 8
4. CICLO WHILE 9
4.1 Estructura 9
4.2 Ejemplo 1 9
4.3 Ejemplo 2 10
5. CONCLUSION 10
1. IF
Esta estructura es la ms sencilla en java netbeans, sirve para implementar
acciones condicionales:
Cuando se cumple la condicin, se imprime las instrucciones dadas en la
sentencia.
1.1 Estructura:
If (condicin) {
Sentencia
} Else
Sentencia
1.2 Ejemplo: Numero mayor o menor
1.3 Ejemplo 2: Sirve para saber si la persona es mayor de edad
2. IF ANIDADO
3. Ciclo FOR
3.1 Estructura:
4.1 Estructura:
While (condicin) {
Sentencia
}
5. CONCLUSION
Estas estructuras y ciclos nos sirven para el desarrollo de software para el beneficio
del usuario, ya que como el while y el for nos sirven para hacer un proceso
repetitivamente.