SlideShare una empresa de Scribd logo
1 de 10
Descargar para leer sin conexión
TALLER GRUPAL SENTENCAS DE CONTROL
ESCRIBA LAS SENTENCIAS EN C++ NECESARIAS PARA:
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 5: Sentencias de Control en C++.
4. POSTERIORMENTE PUEDE SUBIR SU SEGUNDA 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
1. If (cal>8);
2. Cout<<”aprobado”>>;
SENTENCIA DE CONTROL SIMPLE
DIAGRAMA 2 SENTENCIA 2
1. If (condicion1)
2. {
3. bloque 1
4. }
5. Else if (condicion 2)
6. {
7. bloque 2
8. }
9. Else if (condicion 3)
10. {
11. bloque 3
12. }
SENTENCIA DE CONTROL MULTIPLE
DIAGRAMA 3 SENTENCIA 3
1. Char verdader >=18
2. Char falso <18
3. If (verdadero)
4. Cout<<”es mayor de edad”
5. If (falso)
SENTENCIA DE CONTROL SIMPLE
DIAGRAMA 4 SENTENCIA 4
1. cin<<quiero café>>
2. cout<<”hay café hecho”>>
3. if (si)
4. {
5. calentar café
6. }
7. If (no)
8. {
9. Hacer café}
10. Cout<<”servir una taza y añadir azucar””>>
11. Cout<<”esta dulce”
12. If (si)
13. {
14. Tomar café
15. }
16. If (no)
17. {
18. Añadir azucar
19. }
SENTENCIA DE CONTROL DOBLE
DIAGRAMA 5 SENTENCIA 5
1. If (a>b)
2. Cout<<”A es mayor a B”>>
3. If else
4. If (A=B)
5. Cout<<”A es igual a B”>>
6. If else
7. Cout<<”A es menor que B”>>
SENTENCIA DE CONTROL MULTIPLE
DIAGRAMA 6 SENTENCIA 6
1. If (condicion 1)
2. {
3. Instrucción 1
4. }
5. B
6. If else
7. If (condicion 2)
8. {
9. Instrucción 2
10. }
11. B
12. If else
13. If (condicion3)
14. {
15. Instrucción 3
16. }
17. B
18. If else
19. B
SENTENCIA DE CONTROL MULTIPLE
DIAGRAMA 7 SENTENCIA 7
1. If (A>B)
2. {
3. {
4. A>C
5. }
6. If (A>C)
7. {
8. B>C
9. {
10. If else (C,A,B)
11. IF (B>c)
12. {
13. A,B,C
14. }
15. IF ELSE (A,C,B)
16. }
17. IF ELSE
18. IF (B>C)
19. {
20. A>C
21. }
22. IF ELSE (C,B,A)
23. IF (A>C)
24. }
25. B,A,C
26. }
27. IF ELSE
28. {
29. B,C,A
30. }
SENTENCIA DE CONTROL MULTIPLE
DIAGRAMA 8 SENTENCIA 8
1. Char true
2. Char false
3. If (condicion 1 = false)
4. {
5. Sentencia C
6. }
7. If else (condicion 2)
8. If (condicion 2 = false)
9. {
10. Sentecia B
11. }
12. If else
13. {
14. Sentencia A
15. }
SENTENCIA DE CONTROL DOBLE
DIAGRAMA 9 SENTENCIA 9
1. If (numero >6)
2. Cout<<”aprobo la materia””>>
3. If else
4. Cout<<”no aprobo la materia”>>
5. If (numero >=8)
6. Cout<<”puede ganar una beca”>>
SENTENCIA DE CONTROL DOBLE
DIAGRAMA 10 SENTENCIA 10
1. If (modo por tiempo seleccionado =
no)
2. {
3. Funcionamiento inicio?
4. }
5. If (funcionamiento de inicio = si)
6. {
7. Encender el motro
8. Generar retardo con tiempo ingresado
9. Apagar el motor
10. }
11. If else
12. If ( modo por tiempo seleccionado =
si)
13. {
14. dar orden de encender el motor
15. encender el motor
16. }
17. {
18. Dar orden de apagar el motor
19. Apagar el motor
20. }
SENTENCIA DE CONTROL DOBLE

Más contenido relacionado

Similar a 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_.docxMarlon435020
 
Sentencias de Control
Sentencias de ControlSentencias de Control
Sentencias de ControlDiegoGuaman20
 
Taller sintaxis IF Grupo 9.docx
Taller sintaxis IF Grupo 9.docxTaller sintaxis IF Grupo 9.docx
Taller sintaxis IF Grupo 9.docxMarlon435020
 
SENTENCIAS DE CONTROL IF_ GRUPO6.pdf
SENTENCIAS DE CONTROL IF_ GRUPO6.pdfSENTENCIAS DE CONTROL IF_ GRUPO6.pdf
SENTENCIAS DE CONTROL IF_ GRUPO6.pdfNao31
 
Taller sintaxis IF Grupo 9.docx
Taller sintaxis IF Grupo 9.docxTaller sintaxis IF Grupo 9.docx
Taller sintaxis IF Grupo 9.docxMarlon435020
 
Taller sintaxis IF Grupo 9.docx
Taller sintaxis IF Grupo 9.docxTaller sintaxis IF Grupo 9.docx
Taller sintaxis IF Grupo 9.docxMarlon435020
 
TALLER INDIVUIDUAL SENTENCAS DE CONTROL
TALLER INDIVUIDUAL SENTENCAS DE CONTROLTALLER INDIVUIDUAL SENTENCAS DE CONTROL
TALLER INDIVUIDUAL SENTENCAS DE CONTROLPadugame
 
Grupo 1 sentencia If.pdf
Grupo 1 sentencia If.pdfGrupo 1 sentencia If.pdf
Grupo 1 sentencia If.pdfLeytonGarca
 
Taller sintaxis IF ... grupo10.pdf
Taller sintaxis IF ... grupo10.pdfTaller sintaxis IF ... grupo10.pdf
Taller sintaxis IF ... grupo10.pdfFiorelaRodrguez2
 
Taller de estructuras secuenciales C++
Taller de estructuras secuenciales C++Taller de estructuras secuenciales C++
Taller de estructuras secuenciales C++HemonayaCevallos
 
Sentencias de control
Sentencias de controlSentencias de control
Sentencias de controlEdison797017
 
Taller sintaxis .grupo 3.pdf
Taller sintaxis .grupo 3.pdfTaller sintaxis .grupo 3.pdf
Taller sintaxis .grupo 3.pdfandrealara117715
 

Similar a Taller sintaxis IF.pdf (17)

Taller sintaxis IF Grupo 9_.docx
Taller sintaxis IF Grupo 9_.docxTaller sintaxis IF Grupo 9_.docx
Taller sintaxis IF Grupo 9_.docx
 
Grupo3PrimeroB.docx
Grupo3PrimeroB.docxGrupo3PrimeroB.docx
Grupo3PrimeroB.docx
 
Sentencias de Control
Sentencias de ControlSentencias de Control
Sentencias de Control
 
Taller sintaxis IF Grupo 9.docx
Taller sintaxis IF Grupo 9.docxTaller sintaxis IF Grupo 9.docx
Taller sintaxis IF Grupo 9.docx
 
SENTENCIAS DE CONTROL IF_ GRUPO6.pdf
SENTENCIAS DE CONTROL IF_ GRUPO6.pdfSENTENCIAS DE CONTROL IF_ GRUPO6.pdf
SENTENCIAS DE CONTROL IF_ GRUPO6.pdf
 
Taller sintaxis IF Grupo 9.docx
Taller sintaxis IF Grupo 9.docxTaller sintaxis IF Grupo 9.docx
Taller sintaxis IF Grupo 9.docx
 
Taller sintaxis IF Grupo 9.docx
Taller sintaxis IF Grupo 9.docxTaller sintaxis IF Grupo 9.docx
Taller sintaxis IF Grupo 9.docx
 
TALLER INDIVUIDUAL SENTENCAS DE CONTROL
TALLER INDIVUIDUAL SENTENCAS DE CONTROLTALLER INDIVUIDUAL SENTENCAS DE CONTROL
TALLER INDIVUIDUAL SENTENCAS DE CONTROL
 
Grupo 1 sentencia If.pdf
Grupo 1 sentencia If.pdfGrupo 1 sentencia If.pdf
Grupo 1 sentencia If.pdf
 
Taller sintaxis_Grupo 5.doc
Taller sintaxis_Grupo 5.docTaller sintaxis_Grupo 5.doc
Taller sintaxis_Grupo 5.doc
 
Grupo3Programacion.docx
Grupo3Programacion.docxGrupo3Programacion.docx
Grupo3Programacion.docx
 
Taller sintaxis IF ... grupo10.pdf
Taller sintaxis IF ... grupo10.pdfTaller sintaxis IF ... grupo10.pdf
Taller sintaxis IF ... grupo10.pdf
 
Taller de estructuras secuenciales C++
Taller de estructuras secuenciales C++Taller de estructuras secuenciales C++
Taller de estructuras secuenciales C++
 
3.Taller sintaxis IF.pdf
3.Taller sintaxis IF.pdf3.Taller sintaxis IF.pdf
3.Taller sintaxis IF.pdf
 
Sentencias de control
Sentencias de controlSentencias de control
Sentencias de control
 
Taller sintaxis .grupo 3.pdf
Taller sintaxis .grupo 3.pdfTaller sintaxis .grupo 3.pdf
Taller sintaxis .grupo 3.pdf
 
GRUPO 11.docx
GRUPO 11.docxGRUPO 11.docx
GRUPO 11.docx
 

Último

Informatica Generalidades - Conceptos Básicos
Informatica Generalidades - Conceptos BásicosInformatica Generalidades - Conceptos Básicos
Informatica Generalidades - Conceptos BásicosCesarFernandez937857
 
RAIZ CUADRADA Y CUBICA PARA NIÑOS DE PRIMARIA
RAIZ CUADRADA Y CUBICA PARA NIÑOS DE PRIMARIARAIZ CUADRADA Y CUBICA PARA NIÑOS DE PRIMARIA
RAIZ CUADRADA Y CUBICA PARA NIÑOS DE PRIMARIACarlos Campaña Montenegro
 
Lecciones 04 Esc. Sabática. Defendamos la verdad
Lecciones 04 Esc. Sabática. Defendamos la verdadLecciones 04 Esc. Sabática. Defendamos la verdad
Lecciones 04 Esc. Sabática. Defendamos la verdadAlejandrino Halire Ccahuana
 
Neurociencias para Educadores NE24 Ccesa007.pdf
Neurociencias para Educadores  NE24  Ccesa007.pdfNeurociencias para Educadores  NE24  Ccesa007.pdf
Neurociencias para Educadores NE24 Ccesa007.pdfDemetrio Ccesa Rayme
 
Resolucion de Problemas en Educacion Inicial 5 años ED-2024 Ccesa007.pdf
Resolucion de Problemas en Educacion Inicial 5 años ED-2024 Ccesa007.pdfResolucion de Problemas en Educacion Inicial 5 años ED-2024 Ccesa007.pdf
Resolucion de Problemas en Educacion Inicial 5 años ED-2024 Ccesa007.pdfDemetrio Ccesa Rayme
 
TIPOLOGÍA TEXTUAL- EXPOSICIÓN Y ARGUMENTACIÓN.pptx
TIPOLOGÍA TEXTUAL- EXPOSICIÓN Y ARGUMENTACIÓN.pptxTIPOLOGÍA TEXTUAL- EXPOSICIÓN Y ARGUMENTACIÓN.pptx
TIPOLOGÍA TEXTUAL- EXPOSICIÓN Y ARGUMENTACIÓN.pptxlclcarmen
 
NARRACIONES SOBRE LA VIDA DEL GENERAL ELOY ALFARO
NARRACIONES SOBRE LA VIDA DEL GENERAL ELOY ALFARONARRACIONES SOBRE LA VIDA DEL GENERAL ELOY ALFARO
NARRACIONES SOBRE LA VIDA DEL GENERAL ELOY ALFAROJosé Luis Palma
 
ACERTIJO DE LA BANDERA OLÍMPICA CON ECUACIONES DE LA CIRCUNFERENCIA. Por JAVI...
ACERTIJO DE LA BANDERA OLÍMPICA CON ECUACIONES DE LA CIRCUNFERENCIA. Por JAVI...ACERTIJO DE LA BANDERA OLÍMPICA CON ECUACIONES DE LA CIRCUNFERENCIA. Por JAVI...
ACERTIJO DE LA BANDERA OLÍMPICA CON ECUACIONES DE LA CIRCUNFERENCIA. Por JAVI...JAVIER SOLIS NOYOLA
 
CALENDARIZACION DE MAYO / RESPONSABILIDAD
CALENDARIZACION DE MAYO / RESPONSABILIDADCALENDARIZACION DE MAYO / RESPONSABILIDAD
CALENDARIZACION DE MAYO / RESPONSABILIDADauxsoporte
 
programa dia de las madres 10 de mayo para evento
programa dia de las madres 10 de mayo  para eventoprograma dia de las madres 10 de mayo  para evento
programa dia de las madres 10 de mayo para eventoDiegoMtsS
 
Introducción:Los objetivos de Desarrollo Sostenible
Introducción:Los objetivos de Desarrollo SostenibleIntroducción:Los objetivos de Desarrollo Sostenible
Introducción:Los objetivos de Desarrollo SostenibleJonathanCovena1
 
ACUERDO MINISTERIAL 078-ORGANISMOS ESCOLARES..pptx
ACUERDO MINISTERIAL 078-ORGANISMOS ESCOLARES..pptxACUERDO MINISTERIAL 078-ORGANISMOS ESCOLARES..pptx
ACUERDO MINISTERIAL 078-ORGANISMOS ESCOLARES..pptxzulyvero07
 
cortes de luz abril 2024 en la provincia de tungurahua
cortes de luz abril 2024 en la provincia de tungurahuacortes de luz abril 2024 en la provincia de tungurahua
cortes de luz abril 2024 en la provincia de tungurahuaDANNYISAACCARVAJALGA
 
Herramientas de Inteligencia Artificial.pdf
Herramientas de Inteligencia Artificial.pdfHerramientas de Inteligencia Artificial.pdf
Herramientas de Inteligencia Artificial.pdfMARIAPAULAMAHECHAMOR
 
MAYO 1 PROYECTO día de la madre el amor más grande
MAYO 1 PROYECTO día de la madre el amor más grandeMAYO 1 PROYECTO día de la madre el amor más grande
MAYO 1 PROYECTO día de la madre el amor más grandeMarjorie Burga
 
2024 - Expo Visibles - Visibilidad Lesbica.pdf
2024 - Expo Visibles - Visibilidad Lesbica.pdf2024 - Expo Visibles - Visibilidad Lesbica.pdf
2024 - Expo Visibles - Visibilidad Lesbica.pdfBaker Publishing Company
 
texto argumentativo, ejemplos y ejercicios prácticos
texto argumentativo, ejemplos y ejercicios prácticostexto argumentativo, ejemplos y ejercicios prácticos
texto argumentativo, ejemplos y ejercicios prácticosisabeltrejoros
 
Estrategia de prompts, primeras ideas para su construcción
Estrategia de prompts, primeras ideas para su construcciónEstrategia de prompts, primeras ideas para su construcción
Estrategia de prompts, primeras ideas para su construcciónLourdes Feria
 

Último (20)

Informatica Generalidades - Conceptos Básicos
Informatica Generalidades - Conceptos BásicosInformatica Generalidades - Conceptos Básicos
Informatica Generalidades - Conceptos Básicos
 
RAIZ CUADRADA Y CUBICA PARA NIÑOS DE PRIMARIA
RAIZ CUADRADA Y CUBICA PARA NIÑOS DE PRIMARIARAIZ CUADRADA Y CUBICA PARA NIÑOS DE PRIMARIA
RAIZ CUADRADA Y CUBICA PARA NIÑOS DE PRIMARIA
 
Lecciones 04 Esc. Sabática. Defendamos la verdad
Lecciones 04 Esc. Sabática. Defendamos la verdadLecciones 04 Esc. Sabática. Defendamos la verdad
Lecciones 04 Esc. Sabática. Defendamos la verdad
 
Neurociencias para Educadores NE24 Ccesa007.pdf
Neurociencias para Educadores  NE24  Ccesa007.pdfNeurociencias para Educadores  NE24  Ccesa007.pdf
Neurociencias para Educadores NE24 Ccesa007.pdf
 
Resolucion de Problemas en Educacion Inicial 5 años ED-2024 Ccesa007.pdf
Resolucion de Problemas en Educacion Inicial 5 años ED-2024 Ccesa007.pdfResolucion de Problemas en Educacion Inicial 5 años ED-2024 Ccesa007.pdf
Resolucion de Problemas en Educacion Inicial 5 años ED-2024 Ccesa007.pdf
 
TIPOLOGÍA TEXTUAL- EXPOSICIÓN Y ARGUMENTACIÓN.pptx
TIPOLOGÍA TEXTUAL- EXPOSICIÓN Y ARGUMENTACIÓN.pptxTIPOLOGÍA TEXTUAL- EXPOSICIÓN Y ARGUMENTACIÓN.pptx
TIPOLOGÍA TEXTUAL- EXPOSICIÓN Y ARGUMENTACIÓN.pptx
 
NARRACIONES SOBRE LA VIDA DEL GENERAL ELOY ALFARO
NARRACIONES SOBRE LA VIDA DEL GENERAL ELOY ALFARONARRACIONES SOBRE LA VIDA DEL GENERAL ELOY ALFARO
NARRACIONES SOBRE LA VIDA DEL GENERAL ELOY ALFARO
 
ACERTIJO DE LA BANDERA OLÍMPICA CON ECUACIONES DE LA CIRCUNFERENCIA. Por JAVI...
ACERTIJO DE LA BANDERA OLÍMPICA CON ECUACIONES DE LA CIRCUNFERENCIA. Por JAVI...ACERTIJO DE LA BANDERA OLÍMPICA CON ECUACIONES DE LA CIRCUNFERENCIA. Por JAVI...
ACERTIJO DE LA BANDERA OLÍMPICA CON ECUACIONES DE LA CIRCUNFERENCIA. Por JAVI...
 
CALENDARIZACION DE MAYO / RESPONSABILIDAD
CALENDARIZACION DE MAYO / RESPONSABILIDADCALENDARIZACION DE MAYO / RESPONSABILIDAD
CALENDARIZACION DE MAYO / RESPONSABILIDAD
 
programa dia de las madres 10 de mayo para evento
programa dia de las madres 10 de mayo  para eventoprograma dia de las madres 10 de mayo  para evento
programa dia de las madres 10 de mayo para evento
 
Introducción:Los objetivos de Desarrollo Sostenible
Introducción:Los objetivos de Desarrollo SostenibleIntroducción:Los objetivos de Desarrollo Sostenible
Introducción:Los objetivos de Desarrollo Sostenible
 
ACUERDO MINISTERIAL 078-ORGANISMOS ESCOLARES..pptx
ACUERDO MINISTERIAL 078-ORGANISMOS ESCOLARES..pptxACUERDO MINISTERIAL 078-ORGANISMOS ESCOLARES..pptx
ACUERDO MINISTERIAL 078-ORGANISMOS ESCOLARES..pptx
 
Repaso Pruebas CRECE PR 2024. Ciencia General
Repaso Pruebas CRECE PR 2024. Ciencia GeneralRepaso Pruebas CRECE PR 2024. Ciencia General
Repaso Pruebas CRECE PR 2024. Ciencia General
 
cortes de luz abril 2024 en la provincia de tungurahua
cortes de luz abril 2024 en la provincia de tungurahuacortes de luz abril 2024 en la provincia de tungurahua
cortes de luz abril 2024 en la provincia de tungurahua
 
Herramientas de Inteligencia Artificial.pdf
Herramientas de Inteligencia Artificial.pdfHerramientas de Inteligencia Artificial.pdf
Herramientas de Inteligencia Artificial.pdf
 
Power Point: "Defendamos la verdad".pptx
Power Point: "Defendamos la verdad".pptxPower Point: "Defendamos la verdad".pptx
Power Point: "Defendamos la verdad".pptx
 
MAYO 1 PROYECTO día de la madre el amor más grande
MAYO 1 PROYECTO día de la madre el amor más grandeMAYO 1 PROYECTO día de la madre el amor más grande
MAYO 1 PROYECTO día de la madre el amor más grande
 
2024 - Expo Visibles - Visibilidad Lesbica.pdf
2024 - Expo Visibles - Visibilidad Lesbica.pdf2024 - Expo Visibles - Visibilidad Lesbica.pdf
2024 - Expo Visibles - Visibilidad Lesbica.pdf
 
texto argumentativo, ejemplos y ejercicios prácticos
texto argumentativo, ejemplos y ejercicios prácticostexto argumentativo, ejemplos y ejercicios prácticos
texto argumentativo, ejemplos y ejercicios prácticos
 
Estrategia de prompts, primeras ideas para su construcción
Estrategia de prompts, primeras ideas para su construcciónEstrategia de prompts, primeras ideas para su construcción
Estrategia de prompts, primeras ideas para su construcción
 

Taller sintaxis IF.pdf

  • 1. TALLER GRUPAL SENTENCAS DE CONTROL ESCRIBA LAS SENTENCIAS EN C++ NECESARIAS PARA: 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 5: Sentencias de Control en C++. 4. POSTERIORMENTE PUEDE SUBIR SU SEGUNDA 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 1. If (cal>8); 2. Cout<<”aprobado”>>; SENTENCIA DE CONTROL SIMPLE
  • 2. DIAGRAMA 2 SENTENCIA 2 1. If (condicion1) 2. { 3. bloque 1 4. } 5. Else if (condicion 2) 6. { 7. bloque 2 8. } 9. Else if (condicion 3) 10. { 11. bloque 3 12. } SENTENCIA DE CONTROL MULTIPLE
  • 3. DIAGRAMA 3 SENTENCIA 3 1. Char verdader >=18 2. Char falso <18 3. If (verdadero) 4. Cout<<”es mayor de edad” 5. If (falso) SENTENCIA DE CONTROL SIMPLE
  • 4. DIAGRAMA 4 SENTENCIA 4 1. cin<<quiero café>> 2. cout<<”hay café hecho”>> 3. if (si) 4. { 5. calentar café 6. } 7. If (no) 8. { 9. Hacer café} 10. Cout<<”servir una taza y añadir azucar””>> 11. Cout<<”esta dulce” 12. If (si) 13. { 14. Tomar café 15. } 16. If (no) 17. { 18. Añadir azucar 19. } SENTENCIA DE CONTROL DOBLE
  • 5. DIAGRAMA 5 SENTENCIA 5 1. If (a>b) 2. Cout<<”A es mayor a B”>> 3. If else 4. If (A=B) 5. Cout<<”A es igual a B”>> 6. If else 7. Cout<<”A es menor que B”>> SENTENCIA DE CONTROL MULTIPLE
  • 6. DIAGRAMA 6 SENTENCIA 6 1. If (condicion 1) 2. { 3. Instrucción 1 4. } 5. B 6. If else 7. If (condicion 2) 8. { 9. Instrucción 2 10. } 11. B 12. If else 13. If (condicion3) 14. { 15. Instrucción 3 16. } 17. B 18. If else 19. B SENTENCIA DE CONTROL MULTIPLE
  • 7. DIAGRAMA 7 SENTENCIA 7 1. If (A>B) 2. { 3. { 4. A>C 5. } 6. If (A>C) 7. { 8. B>C 9. { 10. If else (C,A,B) 11. IF (B>c) 12. { 13. A,B,C 14. } 15. IF ELSE (A,C,B) 16. } 17. IF ELSE 18. IF (B>C) 19. { 20. A>C 21. } 22. IF ELSE (C,B,A) 23. IF (A>C) 24. } 25. B,A,C 26. } 27. IF ELSE 28. { 29. B,C,A 30. } SENTENCIA DE CONTROL MULTIPLE
  • 8. DIAGRAMA 8 SENTENCIA 8 1. Char true 2. Char false 3. If (condicion 1 = false) 4. { 5. Sentencia C 6. } 7. If else (condicion 2) 8. If (condicion 2 = false) 9. { 10. Sentecia B 11. } 12. If else 13. { 14. Sentencia A 15. } SENTENCIA DE CONTROL DOBLE
  • 9. DIAGRAMA 9 SENTENCIA 9 1. If (numero >6) 2. Cout<<”aprobo la materia””>> 3. If else 4. Cout<<”no aprobo la materia”>> 5. If (numero >=8) 6. Cout<<”puede ganar una beca”>> SENTENCIA DE CONTROL DOBLE
  • 10. DIAGRAMA 10 SENTENCIA 10 1. If (modo por tiempo seleccionado = no) 2. { 3. Funcionamiento inicio? 4. } 5. If (funcionamiento de inicio = si) 6. { 7. Encender el motro 8. Generar retardo con tiempo ingresado 9. Apagar el motor 10. } 11. If else 12. If ( modo por tiempo seleccionado = si) 13. { 14. dar orden de encender el motor 15. encender el motor 16. } 17. { 18. Dar orden de apagar el motor 19. Apagar el motor 20. } SENTENCIA DE CONTROL DOBLE