Universidad Tecnológica de Nezahualcóyotl
Tecnologías de Información y Comunicaciones

Materia:
Curso Propedéutico.
Profesor:
Luis Manuel Martínez Ramírez.
Viernes 5 y Lunes 8 de Agosto de 2005
Clase 2: if statement
La programación tiene tres operaciones básicas:
SEQUENCE, DECISION & ITERATION.
DECISION, que también es if statement es una bifurcación ( una i griega "Y" )
dentro del flujo de la sucesión de instrucciones lógicas.
Sintaxis del if

Dentro del paréntesis se revisa la CONDICIÓN, en caso de ser verdadera sigue el flujo de la flecha azul, en caso de ser falsa sigue el flujo de la flecha rosa.
The if statement is one of the most powerful devices in programming. It allows the program to choose an action based upon input. For example, a program can be written to decide if a user can access the program by using an if statement to check if the password is correct or not.
Without a conditional statement such as if programs would run almost the exact same way every time. If statements allow the flow of the program to be changed.
Click aquí para revisar los Cyber Apuntes 1
Click aquí para revisar los Cyber Apuntes 2
Hacer la Tarea 1
Profe Web Site: www.gil-luis.net/luis
E-Mail Prope: [email protected]
