SlideShare una empresa de Scribd logo
TALLER INDIVUIDUAL SENTENCAS DECONTROL (10 PUNTOS)
ESCRIBA LAS SENTENCIAS EN C++ NECESARIAS PARA: Nombre: 1016_JUAN QUINATOA
1. REPRESENTAR LAS SENTENCIAS EN C++ CORRESPONDIENTES AL DIAGRAMA DE FLUJO
2. ENUMERE Y ESCRIBA LAS SENTENCIAS EN C++, ÚNICAMENTE DESDE DONDE INICIA EL DIAGRAMA DE FLUJO HASTA DONDE TERMINA.
3. AL TERMINAR SUBA SU DOCUMENTO .doc AL LINK Taller 6: Sentencias de Control en C++.
4. POSTERIORMENTE PUEDE SUBIR SU TERCERA ENTRADA AL BLOG COMO UN SLIDE (slideshare.net) CON EL TITULO SENTENCIAS DE CONTROL EN C++ (Escoja el meor Slide de los intengrantes
del grupo)
DIAGRAMA DE FLUJO DE CONTROL Y SENTENCIAS EN C++
DIAGRAMA 1 SENTENCIA 1
If (Cal>8)
Cout<<”Aprobado";
DIAGRAMA 2 SENTENCIA 2
If (condicion 1)
Bloque 1;
Else
If (condicion2)
{
Bloque 2;
Else
Bloque 3;
}
DIAGRAMA 3 SENTENCIA 3
If (Edad >=18)
Cout<< Escribir"Esmayor de edad”;
DIAGRAMA 4 SENTENCIA 4
Cout<<”quierocafé “;
If (¿Hay café hecho?)
Cout<<”calentarcafé”;
Else
Cout<<”hacer café”;
Cout<<”servirentaza y añadirazucar”;
If (¿Esta dulce?)
Añadirazúcar;
Cout<<”tomar café”;
Else<<”añadirazucar:”;
DIAGRAMA 5 SENTENCIA 5
If (A>B)
{
Cout<<”Aesmayorque B;
}
Else
If (A=B)
{
Cout<<”A esigual a B";
}
Else
{
Cout<<”A esmenorque B “;
}
DIAGRAMA 6 SENTENCIA 6
If (condicion1)
{
//Instrucción1;
}
Else;
If (condicion2)
{
//Instrucción2;
}
Else;
If (condicion3)
{
//Instrucción3;
}
}
}
DIAGRAMA 7 SENTENCIA 7
If(A>B)
{ If(B>C)
If(A>C) {
{ Cout<<”C,A,B";
Cout<<”C,A,B”; }
} Else
Else. If(A>C)
If(B>C) }
{ Cout<<”B,A,C";
Cout<<”A,B,C"; }
} {
{ Cout<<”B,C,A";
Cout<<”A,C,B"; }
} }
Else
DIAGRAMA 8 SENTENCIA 8
If(condicion1)
{
If(condicion2)
{
SentenciasA;
}
Else
{
SentenciasB;
}
}
Else
{
SentenciasC;
}
DIAGRAMA 9 SENTENCIA 9
If(Número>6)
{
Cout<<”Aprobolamateria";
}
Else
{
Cout<<”Noaprobo la mteria";
}
If(numero>=8)
{
Cout<<”puede ganaruna beca";
}
Return0;
}
DIAGRAMA 10 SENTENCIA 10
If(Modopor tiempo seleccionado)
{
Dar laordende encenderel motor;
}
{
Encenderel motor;
}
Dar la orden…;
Apagarel motor;
}
Else
If(….)
{
Encender
Generar
Apagar
}

Más contenido relacionado

Similar a Sentencias de control en c++

Taller Estructuras de control
Taller Estructuras de control Taller Estructuras de control
Taller Estructuras de control
HemonayaCevallos
 
Taller sintaxis IF Grupo 5
Taller sintaxis IF Grupo 5Taller sintaxis IF Grupo 5
Taller sintaxis IF Grupo 5
bryancithochicaiza
 
Sentencias de Control en C++
Sentencias de Control en C++Sentencias de Control en C++
Sentencias de Control en C++
BenjaArevaloArellano
 
Sentencias de Control
Sentencias de Control Sentencias de Control
Sentencias de Control
JosuePaca1
 
Grupo 2.docx
Grupo 2.docxGrupo 2.docx
Grupo 2.docx
kevin473129
 
Taller sintaxis IF.docx
Taller sintaxis IF.docxTaller sintaxis IF.docx
Taller sintaxis IF.docx
johnamboya
 
Taller sintaxis IF (1).pdf
Taller sintaxis IF (1).pdfTaller sintaxis IF (1).pdf
Taller sintaxis IF (1).pdf
emiliacondo1
 
Grupo 3 Taller sintaxis IF.docx
Grupo 3  Taller sintaxis IF.docxGrupo 3  Taller sintaxis IF.docx
Grupo 3 Taller sintaxis IF.docx
JorgeArmandoCarrillo1
 
Slide programacion
Slide programacionSlide programacion
Slide programacion
Andersonauay
 
Trabajo en grupo.docx
Trabajo en grupo.docxTrabajo en grupo.docx
Trabajo en grupo.docx
PAULCHILUIZA3
 
Taller sintaxis andres sanchez
Taller sintaxis  andres sanchezTaller sintaxis  andres sanchez
Taller sintaxis andres sanchez
jair sanchez
 
Taller sintaxis IF.docx
Taller sintaxis IF.docxTaller sintaxis IF.docx
Taller sintaxis IF.docx
cristianmoranruiz1
 
Grupo 11 Taller sintaxis IF.docx
Grupo 11 Taller sintaxis IF.docxGrupo 11 Taller sintaxis IF.docx
Grupo 11 Taller sintaxis IF.docx
BryanSanto1
 
Taller sintaxis IF.docx
Taller sintaxis IF.docxTaller sintaxis IF.docx
Taller sintaxis IF.docx
BryanSanto1
 
Taller 5_Sentencias de Control.docx
Taller 5_Sentencias de Control.docxTaller 5_Sentencias de Control.docx
Taller 5_Sentencias de Control.docx
JoelJami
 
Sentencias de Control GRUPO 8
Sentencias de Control GRUPO 8Sentencias de Control GRUPO 8
Sentencias de Control GRUPO 8
Jordan441744
 
Sentencias de control
Sentencias de controlSentencias de control
Sentencias de control
Edison797017
 
3.Taller sintaxis IF.pdf
3.Taller sintaxis IF.pdf3.Taller sintaxis IF.pdf
3.Taller sintaxis IF.pdf
bryancithochicaiza
 
Taller sintaxis IF Grupo 9_.docx
Taller sintaxis IF Grupo 9_.docxTaller sintaxis IF Grupo 9_.docx
Taller sintaxis IF Grupo 9_.docx
Marlon435020
 
trabajo-grupal_04 b.pdf
trabajo-grupal_04 b.pdftrabajo-grupal_04 b.pdf
trabajo-grupal_04 b.pdf
gabrieloate4
 

Similar a Sentencias de control en c++ (20)

Taller Estructuras de control
Taller Estructuras de control Taller Estructuras de control
Taller Estructuras de control
 
Taller sintaxis IF Grupo 5
Taller sintaxis IF Grupo 5Taller sintaxis IF Grupo 5
Taller sintaxis IF Grupo 5
 
Sentencias de Control en C++
Sentencias de Control en C++Sentencias de Control en C++
Sentencias de Control en C++
 
Sentencias de Control
Sentencias de Control Sentencias de Control
Sentencias de Control
 
Grupo 2.docx
Grupo 2.docxGrupo 2.docx
Grupo 2.docx
 
Taller sintaxis IF.docx
Taller sintaxis IF.docxTaller sintaxis IF.docx
Taller sintaxis IF.docx
 
Taller sintaxis IF (1).pdf
Taller sintaxis IF (1).pdfTaller sintaxis IF (1).pdf
Taller sintaxis IF (1).pdf
 
Grupo 3 Taller sintaxis IF.docx
Grupo 3  Taller sintaxis IF.docxGrupo 3  Taller sintaxis IF.docx
Grupo 3 Taller sintaxis IF.docx
 
Slide programacion
Slide programacionSlide programacion
Slide programacion
 
Trabajo en grupo.docx
Trabajo en grupo.docxTrabajo en grupo.docx
Trabajo en grupo.docx
 
Taller sintaxis andres sanchez
Taller sintaxis  andres sanchezTaller sintaxis  andres sanchez
Taller sintaxis andres sanchez
 
Taller sintaxis IF.docx
Taller sintaxis IF.docxTaller sintaxis IF.docx
Taller sintaxis IF.docx
 
Grupo 11 Taller sintaxis IF.docx
Grupo 11 Taller sintaxis IF.docxGrupo 11 Taller sintaxis IF.docx
Grupo 11 Taller sintaxis IF.docx
 
Taller sintaxis IF.docx
Taller sintaxis IF.docxTaller sintaxis IF.docx
Taller sintaxis IF.docx
 
Taller 5_Sentencias de Control.docx
Taller 5_Sentencias de Control.docxTaller 5_Sentencias de Control.docx
Taller 5_Sentencias de Control.docx
 
Sentencias de Control GRUPO 8
Sentencias de Control GRUPO 8Sentencias de Control GRUPO 8
Sentencias de Control GRUPO 8
 
Sentencias de control
Sentencias de controlSentencias de control
Sentencias de control
 
3.Taller sintaxis IF.pdf
3.Taller sintaxis IF.pdf3.Taller sintaxis IF.pdf
3.Taller sintaxis IF.pdf
 
Taller sintaxis IF Grupo 9_.docx
Taller sintaxis IF Grupo 9_.docxTaller sintaxis IF Grupo 9_.docx
Taller sintaxis IF Grupo 9_.docx
 
trabajo-grupal_04 b.pdf
trabajo-grupal_04 b.pdftrabajo-grupal_04 b.pdf
trabajo-grupal_04 b.pdf
 

Último

Sesión: El espiritismo desenmascarado.pdf
Sesión: El espiritismo desenmascarado.pdfSesión: El espiritismo desenmascarado.pdf
Sesión: El espiritismo desenmascarado.pdf
https://gramadal.wordpress.com/
 
FUENTES DE LA CULTURA GRIEGA EN LA HISTORIA
FUENTES DE LA CULTURA GRIEGA EN LA HISTORIAFUENTES DE LA CULTURA GRIEGA EN LA HISTORIA
FUENTES DE LA CULTURA GRIEGA EN LA HISTORIA
ElenaGallardoPals
 
Power Point: El espiritismo desenmascarado
Power Point: El espiritismo desenmascaradoPower Point: El espiritismo desenmascarado
Power Point: El espiritismo desenmascarado
https://gramadal.wordpress.com/
 
Mauricio-Presentación-Vacacional- 2024-1
Mauricio-Presentación-Vacacional- 2024-1Mauricio-Presentación-Vacacional- 2024-1
Mauricio-Presentación-Vacacional- 2024-1
MauricioSnchez83
 
Friedrich Nietzsche. Presentación de 2 de Bachillerato.
Friedrich Nietzsche. Presentación de 2 de Bachillerato.Friedrich Nietzsche. Presentación de 2 de Bachillerato.
Friedrich Nietzsche. Presentación de 2 de Bachillerato.
pablomarin116
 
UNA VISITA A SAN PEDRO EN EL VATICANO.pdf
UNA VISITA A SAN PEDRO EN EL VATICANO.pdfUNA VISITA A SAN PEDRO EN EL VATICANO.pdf
UNA VISITA A SAN PEDRO EN EL VATICANO.pdf
Joan Ribes Gallén
 
Biografía de Gregor Mendel y sus 3 leyes.pptx
Biografía de Gregor Mendel y sus 3 leyes.pptxBiografía de Gregor Mendel y sus 3 leyes.pptx
Biografía de Gregor Mendel y sus 3 leyes.pptx
ar5498718
 
Presidencias radicales (1916 – 1930) (1) (1).pdf
Presidencias radicales (1916 – 1930) (1) (1).pdfPresidencias radicales (1916 – 1930) (1) (1).pdf
Presidencias radicales (1916 – 1930) (1) (1).pdf
MARIANA110300
 
PANDERETAS DECORADAS CON MOTIVOS DE LA RIOJA
PANDERETAS DECORADAS CON MOTIVOS DE LA RIOJAPANDERETAS DECORADAS CON MOTIVOS DE LA RIOJA
PANDERETAS DECORADAS CON MOTIVOS DE LA RIOJA
estroba5
 
Planificación Ejemplo con la metodología TPACK
Planificación Ejemplo con la metodología  TPACKPlanificación Ejemplo con la metodología  TPACK
Planificación Ejemplo con la metodología TPACK
ssusera6697f
 
El espiritismo desenmascarado.pdf. Lec. 10
El espiritismo desenmascarado.pdf. Lec. 10El espiritismo desenmascarado.pdf. Lec. 10
El espiritismo desenmascarado.pdf. Lec. 10
Alejandrino Halire Ccahuana
 
EVALUACION ESTUDIANTIL 2023-2024 Ecuador - Costa.pptx
EVALUACION ESTUDIANTIL 2023-2024 Ecuador - Costa.pptxEVALUACION ESTUDIANTIL 2023-2024 Ecuador - Costa.pptx
EVALUACION ESTUDIANTIL 2023-2024 Ecuador - Costa.pptx
Victor Elizalde P
 
PLAN DE CAPACITACION xxxxxxxxxxxxxxxxxxx
PLAN DE CAPACITACION xxxxxxxxxxxxxxxxxxxPLAN DE CAPACITACION xxxxxxxxxxxxxxxxxxx
PLAN DE CAPACITACION xxxxxxxxxxxxxxxxxxx
cportizsanchez48
 
FORTI-JUNIO 2024. CIENCIA, EDUCACION, CULTURA,pdf
FORTI-JUNIO 2024. CIENCIA, EDUCACION, CULTURA,pdfFORTI-JUNIO 2024. CIENCIA, EDUCACION, CULTURA,pdf
FORTI-JUNIO 2024. CIENCIA, EDUCACION, CULTURA,pdf
El Fortí
 
Aprender-IA: Recursos online gratuitos para estar al tanto y familiarizarse c...
Aprender-IA: Recursos online gratuitos para estar al tanto y familiarizarse c...Aprender-IA: Recursos online gratuitos para estar al tanto y familiarizarse c...
Aprender-IA: Recursos online gratuitos para estar al tanto y familiarizarse c...
María Sánchez González (@cibermarikiya)
 
El Liberalismo económico en la sociedad y en el mundo
El Liberalismo económico en la sociedad y en el mundoEl Liberalismo económico en la sociedad y en el mundo
El Liberalismo económico en la sociedad y en el mundo
SandraBenitez52
 
ROMPECABEZAS DE ECUACIONES DE PRIMER GRADO OLIMPIADA DE PARÍS 2024. Por JAVIE...
ROMPECABEZAS DE ECUACIONES DE PRIMER GRADO OLIMPIADA DE PARÍS 2024. Por JAVIE...ROMPECABEZAS DE ECUACIONES DE PRIMER GRADO OLIMPIADA DE PARÍS 2024. Por JAVIE...
ROMPECABEZAS DE ECUACIONES DE PRIMER GRADO OLIMPIADA DE PARÍS 2024. Por JAVIE...
JAVIER SOLIS NOYOLA
 
Examen Lengua y Literatura EVAU Andalucía.pdf
Examen Lengua y Literatura EVAU Andalucía.pdfExamen Lengua y Literatura EVAU Andalucía.pdf
Examen Lengua y Literatura EVAU Andalucía.pdf
20minutos
 
Las Tecnologias Digitales en los Aprendizajesdel Siglo XXI UNESCO Ccesa007.pdf
Las Tecnologias Digitales en los Aprendizajesdel Siglo XXI  UNESCO Ccesa007.pdfLas Tecnologias Digitales en los Aprendizajesdel Siglo XXI  UNESCO Ccesa007.pdf
Las Tecnologias Digitales en los Aprendizajesdel Siglo XXI UNESCO Ccesa007.pdf
Demetrio Ccesa Rayme
 
Nuevos espacios,nuevos tiempos,nuevas practica.pptx
Nuevos espacios,nuevos tiempos,nuevas practica.pptxNuevos espacios,nuevos tiempos,nuevas practica.pptx
Nuevos espacios,nuevos tiempos,nuevas practica.pptx
lautyzaracho4
 

Último (20)

Sesión: El espiritismo desenmascarado.pdf
Sesión: El espiritismo desenmascarado.pdfSesión: El espiritismo desenmascarado.pdf
Sesión: El espiritismo desenmascarado.pdf
 
FUENTES DE LA CULTURA GRIEGA EN LA HISTORIA
FUENTES DE LA CULTURA GRIEGA EN LA HISTORIAFUENTES DE LA CULTURA GRIEGA EN LA HISTORIA
FUENTES DE LA CULTURA GRIEGA EN LA HISTORIA
 
Power Point: El espiritismo desenmascarado
Power Point: El espiritismo desenmascaradoPower Point: El espiritismo desenmascarado
Power Point: El espiritismo desenmascarado
 
Mauricio-Presentación-Vacacional- 2024-1
Mauricio-Presentación-Vacacional- 2024-1Mauricio-Presentación-Vacacional- 2024-1
Mauricio-Presentación-Vacacional- 2024-1
 
Friedrich Nietzsche. Presentación de 2 de Bachillerato.
Friedrich Nietzsche. Presentación de 2 de Bachillerato.Friedrich Nietzsche. Presentación de 2 de Bachillerato.
Friedrich Nietzsche. Presentación de 2 de Bachillerato.
 
UNA VISITA A SAN PEDRO EN EL VATICANO.pdf
UNA VISITA A SAN PEDRO EN EL VATICANO.pdfUNA VISITA A SAN PEDRO EN EL VATICANO.pdf
UNA VISITA A SAN PEDRO EN EL VATICANO.pdf
 
Biografía de Gregor Mendel y sus 3 leyes.pptx
Biografía de Gregor Mendel y sus 3 leyes.pptxBiografía de Gregor Mendel y sus 3 leyes.pptx
Biografía de Gregor Mendel y sus 3 leyes.pptx
 
Presidencias radicales (1916 – 1930) (1) (1).pdf
Presidencias radicales (1916 – 1930) (1) (1).pdfPresidencias radicales (1916 – 1930) (1) (1).pdf
Presidencias radicales (1916 – 1930) (1) (1).pdf
 
PANDERETAS DECORADAS CON MOTIVOS DE LA RIOJA
PANDERETAS DECORADAS CON MOTIVOS DE LA RIOJAPANDERETAS DECORADAS CON MOTIVOS DE LA RIOJA
PANDERETAS DECORADAS CON MOTIVOS DE LA RIOJA
 
Planificación Ejemplo con la metodología TPACK
Planificación Ejemplo con la metodología  TPACKPlanificación Ejemplo con la metodología  TPACK
Planificación Ejemplo con la metodología TPACK
 
El espiritismo desenmascarado.pdf. Lec. 10
El espiritismo desenmascarado.pdf. Lec. 10El espiritismo desenmascarado.pdf. Lec. 10
El espiritismo desenmascarado.pdf. Lec. 10
 
EVALUACION ESTUDIANTIL 2023-2024 Ecuador - Costa.pptx
EVALUACION ESTUDIANTIL 2023-2024 Ecuador - Costa.pptxEVALUACION ESTUDIANTIL 2023-2024 Ecuador - Costa.pptx
EVALUACION ESTUDIANTIL 2023-2024 Ecuador - Costa.pptx
 
PLAN DE CAPACITACION xxxxxxxxxxxxxxxxxxx
PLAN DE CAPACITACION xxxxxxxxxxxxxxxxxxxPLAN DE CAPACITACION xxxxxxxxxxxxxxxxxxx
PLAN DE CAPACITACION xxxxxxxxxxxxxxxxxxx
 
FORTI-JUNIO 2024. CIENCIA, EDUCACION, CULTURA,pdf
FORTI-JUNIO 2024. CIENCIA, EDUCACION, CULTURA,pdfFORTI-JUNIO 2024. CIENCIA, EDUCACION, CULTURA,pdf
FORTI-JUNIO 2024. CIENCIA, EDUCACION, CULTURA,pdf
 
Aprender-IA: Recursos online gratuitos para estar al tanto y familiarizarse c...
Aprender-IA: Recursos online gratuitos para estar al tanto y familiarizarse c...Aprender-IA: Recursos online gratuitos para estar al tanto y familiarizarse c...
Aprender-IA: Recursos online gratuitos para estar al tanto y familiarizarse c...
 
El Liberalismo económico en la sociedad y en el mundo
El Liberalismo económico en la sociedad y en el mundoEl Liberalismo económico en la sociedad y en el mundo
El Liberalismo económico en la sociedad y en el mundo
 
ROMPECABEZAS DE ECUACIONES DE PRIMER GRADO OLIMPIADA DE PARÍS 2024. Por JAVIE...
ROMPECABEZAS DE ECUACIONES DE PRIMER GRADO OLIMPIADA DE PARÍS 2024. Por JAVIE...ROMPECABEZAS DE ECUACIONES DE PRIMER GRADO OLIMPIADA DE PARÍS 2024. Por JAVIE...
ROMPECABEZAS DE ECUACIONES DE PRIMER GRADO OLIMPIADA DE PARÍS 2024. Por JAVIE...
 
Examen Lengua y Literatura EVAU Andalucía.pdf
Examen Lengua y Literatura EVAU Andalucía.pdfExamen Lengua y Literatura EVAU Andalucía.pdf
Examen Lengua y Literatura EVAU Andalucía.pdf
 
Las Tecnologias Digitales en los Aprendizajesdel Siglo XXI UNESCO Ccesa007.pdf
Las Tecnologias Digitales en los Aprendizajesdel Siglo XXI  UNESCO Ccesa007.pdfLas Tecnologias Digitales en los Aprendizajesdel Siglo XXI  UNESCO Ccesa007.pdf
Las Tecnologias Digitales en los Aprendizajesdel Siglo XXI UNESCO Ccesa007.pdf
 
Nuevos espacios,nuevos tiempos,nuevas practica.pptx
Nuevos espacios,nuevos tiempos,nuevas practica.pptxNuevos espacios,nuevos tiempos,nuevas practica.pptx
Nuevos espacios,nuevos tiempos,nuevas practica.pptx
 

Sentencias de control en c++

  • 1. TALLER INDIVUIDUAL SENTENCAS DECONTROL (10 PUNTOS) ESCRIBA LAS SENTENCIAS EN C++ NECESARIAS PARA: Nombre: 1016_JUAN QUINATOA 1. REPRESENTAR LAS SENTENCIAS EN C++ CORRESPONDIENTES AL DIAGRAMA DE FLUJO 2. ENUMERE Y ESCRIBA LAS SENTENCIAS EN C++, ÚNICAMENTE DESDE DONDE INICIA EL DIAGRAMA DE FLUJO HASTA DONDE TERMINA. 3. AL TERMINAR SUBA SU DOCUMENTO .doc AL LINK Taller 6: Sentencias de Control en C++. 4. POSTERIORMENTE PUEDE SUBIR SU TERCERA ENTRADA AL BLOG COMO UN SLIDE (slideshare.net) CON EL TITULO SENTENCIAS DE CONTROL EN C++ (Escoja el meor Slide de los intengrantes del grupo) DIAGRAMA DE FLUJO DE CONTROL Y SENTENCIAS EN C++ DIAGRAMA 1 SENTENCIA 1 If (Cal>8) Cout<<”Aprobado"; DIAGRAMA 2 SENTENCIA 2 If (condicion 1) Bloque 1; Else If (condicion2) { Bloque 2; Else Bloque 3; }
  • 2. DIAGRAMA 3 SENTENCIA 3 If (Edad >=18) Cout<< Escribir"Esmayor de edad”; DIAGRAMA 4 SENTENCIA 4 Cout<<”quierocafé “; If (¿Hay café hecho?) Cout<<”calentarcafé”; Else Cout<<”hacer café”; Cout<<”servirentaza y añadirazucar”; If (¿Esta dulce?) Añadirazúcar; Cout<<”tomar café”; Else<<”añadirazucar:”;
  • 3. DIAGRAMA 5 SENTENCIA 5 If (A>B) { Cout<<”Aesmayorque B; } Else If (A=B) { Cout<<”A esigual a B"; } Else { Cout<<”A esmenorque B “; }
  • 4. DIAGRAMA 6 SENTENCIA 6 If (condicion1) { //Instrucción1; } Else; If (condicion2) { //Instrucción2; } Else; If (condicion3) { //Instrucción3; } } } DIAGRAMA 7 SENTENCIA 7
  • 5. If(A>B) { If(B>C) If(A>C) { { Cout<<”C,A,B"; Cout<<”C,A,B”; } } Else Else. If(A>C) If(B>C) } { Cout<<”B,A,C"; Cout<<”A,B,C"; } } { { Cout<<”B,C,A"; Cout<<”A,C,B"; } } } Else DIAGRAMA 8 SENTENCIA 8 If(condicion1) { If(condicion2) { SentenciasA; } Else { SentenciasB; } } Else { SentenciasC; } DIAGRAMA 9 SENTENCIA 9
  • 7. If(Modopor tiempo seleccionado) { Dar laordende encenderel motor; } { Encenderel motor; } Dar la orden…; Apagarel motor; } Else If(….) { Encender Generar Apagar }