SlideShare ist ein Scribd-Unternehmen logo
1 von 5
TALLER INDIVUIDUAL SENTENCAS DE CONTROL (10 PUNTOS)
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 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
1. If (Cal > 8)
2. Cout<<”aprobado”;
DIAGRAMA 2 SENTENCIA 2
1. If (condicion1)
2. Bloque 1;
3. Else
4. {
5. If (condicion2)
6. Bloque 2;
7. Else
8. Bloque 3;
DIAGRAMA 3 SENTENCIA 3
1. If (edad>=18)
2. Cout<<”Es mayor de edad”;
DIAGRAMA 4 SENTENCIA 4
1. Cout<<”Quiero café”;
2. If (¿Hay café hecho?
3. Cout <<”calentar café”;
4. Else
5. Cout<<”gacer café”;
6. Cout<<”servir en taza y añadir azucar”;
7. If (¿Está dulce)
8. Cout<<”Tomar café”;
9. Elsez<<”añadir azucar”;
DIAGRAMA 5 SENTENCIA 5
1. If(A>B)
2. {
3. Cout<<”A es mayor que B”;
4. }
5. Else
6. {
7. If(A=B)
8. {
9. Cout<<”A es igual a B”;
10. }
11. Else
12. {
13. Cout<<”A es menor que B”
14. }
DIAGRAMA 6 SENTENCIA 6
1. If( condición 1)
2. {
3. //instrucción1
4. }
5. Else
6. {
7. If( condición2)
8. {´
9. //instrucción2
10. }
11. Else
12. {
13. If(condición3)
14. {
15. //instrucción3
16. }
17. }
18. }
DIAGRAMA 7 SENTENCIA 7
1.
2. If(A>B) 18. Cout<<C<<C<<A;
3. { 19. }
4. If(A>B) 20. Else
5. { 21. Cout<<C<<B<<A;
6. If(B>C) 22. }
7. Cout<<A<<B<<C;
8. Else
9. Cout<<C<<A<<B;
10. }
11. Else
12. {
13. If(B>C)
14. {
15. If(A>C)
16. Cout<<B<<A<<C;
17. Else
ls SENTENCIA 8
1. If(Condición 1)
2. {
3. If(Condición 2)
4. {
5. Sentencias A;
6. }
7. Else
8. {
9. Sentencias B;
10. }
11. }
12. Else
13. {
14. Sentencias C;
15. }
DIAGRAMA 9 SENTENCIA 9
1. If(Numero>6)
2. {
3. Cout<<”Aprobo la materia”;
4. }
5. Else
6. {
7. Cout<<”No aprobo la materia”;
8. }
9. If(numero>=8)
10. {
11. Cout>>”Puede ganar una beca”;
12. }
13. Return 0;
14. }
DIAGRAMA 10 SENTENCIA 10
1. If(Modo por tiempo seleccionado)
2. {
3. Dar la orden de encender el motor;
4. Encender el motor;
5. Dar la orden…..;
6. Apagar el motor;
7. }
8. Else
9. If(…)
10. {
11. Encender
12. Generar
13. Apagar
14. }

Weitere ähnliche Inhalte

Ähnlich wie Grupo 11.docx

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
 
trabajo-grupal_04 b.pdf
trabajo-grupal_04 b.pdftrabajo-grupal_04 b.pdf
trabajo-grupal_04 b.pdfgabrieloate4
 
Taller sintaxis IF ... grupo10.pdf
Taller sintaxis IF ... grupo10.pdfTaller sintaxis IF ... grupo10.pdf
Taller sintaxis IF ... grupo10.pdfFiorelaRodrguez2
 
Sentencias de control
Sentencias de controlSentencias de control
Sentencias de controlEdison797017
 
Taller 5_Sentencias de Control.pdf
Taller 5_Sentencias de Control.pdfTaller 5_Sentencias de Control.pdf
Taller 5_Sentencias de Control.pdfJoelJami
 
Taller 5_Sentencias de Control.docx
Taller 5_Sentencias de Control.docxTaller 5_Sentencias de Control.docx
Taller 5_Sentencias de Control.docxJoelJami
 
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 ControlDiegoGuaman20
 
Sentencias de Control en C++.docx
Sentencias de Control en C++.docxSentencias de Control en C++.docx
Sentencias de Control en C++.docxKevinJoel45
 
Taller sintaxis .grupo 3.pdf
Taller sintaxis .grupo 3.pdfTaller sintaxis .grupo 3.pdf
Taller sintaxis .grupo 3.pdfandrealara117715
 
TALLER INDIVUIDUAL SENTENCAS DE CONTROL
TALLER INDIVUIDUAL SENTENCAS DE CONTROLTALLER INDIVUIDUAL SENTENCAS DE CONTROL
TALLER INDIVUIDUAL SENTENCAS DE CONTROLPadugame
 
Taller sintaxis IF.pdf
Taller sintaxis IF.pdfTaller sintaxis IF.pdf
Taller sintaxis IF.pdfgabrieloate4
 
Grupo 1 sentencia If.pdf
Grupo 1 sentencia If.pdfGrupo 1 sentencia If.pdf
Grupo 1 sentencia If.pdfLeytonGarca
 
SENTENCIAS DE CONTROL IF_ GRUPO6.pdf
SENTENCIAS DE CONTROL IF_ GRUPO6.pdfSENTENCIAS DE CONTROL IF_ GRUPO6.pdf
SENTENCIAS DE CONTROL IF_ GRUPO6.pdfNao31
 

Ähnlich wie Grupo 11.docx (18)

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
 
trabajo-grupal_04 b.pdf
trabajo-grupal_04 b.pdftrabajo-grupal_04 b.pdf
trabajo-grupal_04 b.pdf
 
Taller sintaxis IF ... grupo10.pdf
Taller sintaxis IF ... grupo10.pdfTaller sintaxis IF ... grupo10.pdf
Taller sintaxis IF ... grupo10.pdf
 
Sentencias de control
Sentencias de controlSentencias de control
Sentencias de control
 
Taller 5_Sentencias de Control.pdf
Taller 5_Sentencias de Control.pdfTaller 5_Sentencias de Control.pdf
Taller 5_Sentencias de Control.pdf
 
Taller 5_Sentencias de Control.docx
Taller 5_Sentencias de Control.docxTaller 5_Sentencias de Control.docx
Taller 5_Sentencias de Control.docx
 
Taller de estructuras secuenciales C++
Taller de estructuras secuenciales C++Taller de estructuras secuenciales C++
Taller de estructuras secuenciales C++
 
Sentencias de Control
Sentencias de ControlSentencias de Control
Sentencias de Control
 
Sentencias de Control en C++.docx
Sentencias de Control en C++.docxSentencias de Control en C++.docx
Sentencias de Control en C++.docx
 
Taller sintaxis .grupo 3.pdf
Taller sintaxis .grupo 3.pdfTaller sintaxis .grupo 3.pdf
Taller sintaxis .grupo 3.pdf
 
TALLER INDIVUIDUAL SENTENCAS DE CONTROL
TALLER INDIVUIDUAL SENTENCAS DE CONTROLTALLER INDIVUIDUAL SENTENCAS DE CONTROL
TALLER INDIVUIDUAL SENTENCAS DE CONTROL
 
Taller sintaxis IF.pdf
Taller sintaxis IF.pdfTaller sintaxis IF.pdf
Taller sintaxis IF.pdf
 
Grupo3PrimeroB.docx
Grupo3PrimeroB.docxGrupo3PrimeroB.docx
Grupo3PrimeroB.docx
 
Grupo 1 sentencia If.pdf
Grupo 1 sentencia If.pdfGrupo 1 sentencia If.pdf
Grupo 1 sentencia If.pdf
 
GRUPO 11.docx
GRUPO 11.docxGRUPO 11.docx
GRUPO 11.docx
 
SENTENCIAS DE CONTROL IF_ GRUPO6.pdf
SENTENCIAS DE CONTROL IF_ GRUPO6.pdfSENTENCIAS DE CONTROL IF_ GRUPO6.pdf
SENTENCIAS DE CONTROL IF_ GRUPO6.pdf
 
SENTENCIAS DE CONTROL.pdf
SENTENCIAS DE CONTROL.pdfSENTENCIAS DE CONTROL.pdf
SENTENCIAS DE CONTROL.pdf
 

Mehr von KevinJoel45 (10)

10.docx
10.docx10.docx
10.docx
 
9.docx
9.docx9.docx
9.docx
 
8.docx
8.docx8.docx
8.docx
 
7.docx
7.docx7.docx
7.docx
 
6.docx
6.docx6.docx
6.docx
 
5.docx
5.docx5.docx
5.docx
 
4.docx
4.docx4.docx
4.docx
 
3.docx
3.docx3.docx
3.docx
 
2.docx
2.docx2.docx
2.docx
 
1.docx
1.docx1.docx
1.docx
 

Kürzlich hochgeladen

LA LITERATURA DEL BARROCO 2023-2024pptx.pptx
LA LITERATURA DEL BARROCO 2023-2024pptx.pptxLA LITERATURA DEL BARROCO 2023-2024pptx.pptx
LA LITERATURA DEL BARROCO 2023-2024pptx.pptxlclcarmen
 
CONCURSO NACIONAL JOSE MARIA ARGUEDAS.pptx
CONCURSO NACIONAL JOSE MARIA ARGUEDAS.pptxCONCURSO NACIONAL JOSE MARIA ARGUEDAS.pptx
CONCURSO NACIONAL JOSE MARIA ARGUEDAS.pptxroberthirigoinvasque
 
Prueba libre de Geografía para obtención título Bachillerato - 2024
Prueba libre de Geografía para obtención título Bachillerato - 2024Prueba libre de Geografía para obtención título Bachillerato - 2024
Prueba libre de Geografía para obtención título Bachillerato - 2024Juan Martín Martín
 
🦄💫4° SEM32 WORD PLANEACIÓN PROYECTOS DARUKEL 23-24.docx
🦄💫4° SEM32 WORD PLANEACIÓN PROYECTOS DARUKEL 23-24.docx🦄💫4° SEM32 WORD PLANEACIÓN PROYECTOS DARUKEL 23-24.docx
🦄💫4° SEM32 WORD PLANEACIÓN PROYECTOS DARUKEL 23-24.docxEliaHernndez7
 
Prueba de evaluación Geografía e Historia Comunidad de Madrid 4ºESO
Prueba de evaluación Geografía e Historia Comunidad de Madrid 4ºESOPrueba de evaluación Geografía e Historia Comunidad de Madrid 4ºESO
Prueba de evaluación Geografía e Historia Comunidad de Madrid 4ºESOluismii249
 
PLAN DE REFUERZO ESCOLAR MERC 2024-2.docx
PLAN DE REFUERZO ESCOLAR MERC 2024-2.docxPLAN DE REFUERZO ESCOLAR MERC 2024-2.docx
PLAN DE REFUERZO ESCOLAR MERC 2024-2.docxiemerc2024
 
Análisis de los Factores Externos de la Organización.
Análisis de los Factores Externos de la Organización.Análisis de los Factores Externos de la Organización.
Análisis de los Factores Externos de la Organización.JonathanCovena1
 
SISTEMA RESPIRATORIO PARA NIÑOS PRIMARIA
SISTEMA RESPIRATORIO PARA NIÑOS PRIMARIASISTEMA RESPIRATORIO PARA NIÑOS PRIMARIA
SISTEMA RESPIRATORIO PARA NIÑOS PRIMARIAFabiolaGarcia751855
 
SESION DE PERSONAL SOCIAL. La convivencia en familia 22-04-24 -.doc
SESION DE PERSONAL SOCIAL.  La convivencia en familia 22-04-24  -.docSESION DE PERSONAL SOCIAL.  La convivencia en familia 22-04-24  -.doc
SESION DE PERSONAL SOCIAL. La convivencia en familia 22-04-24 -.docRodneyFrankCUADROSMI
 
Proyecto de aprendizaje dia de la madre MINT.pdf
Proyecto de aprendizaje dia de la madre MINT.pdfProyecto de aprendizaje dia de la madre MINT.pdf
Proyecto de aprendizaje dia de la madre MINT.pdfpatriciaines1993
 
TEMA 14.DERIVACIONES ECONÓMICAS, SOCIALES Y POLÍTICAS DEL PROCESO DE INTEGRAC...
TEMA 14.DERIVACIONES ECONÓMICAS, SOCIALES Y POLÍTICAS DEL PROCESO DE INTEGRAC...TEMA 14.DERIVACIONES ECONÓMICAS, SOCIALES Y POLÍTICAS DEL PROCESO DE INTEGRAC...
TEMA 14.DERIVACIONES ECONÓMICAS, SOCIALES Y POLÍTICAS DEL PROCESO DE INTEGRAC...jlorentemartos
 
Prueba de evaluación Geografía e Historia Comunidad de Madrid 2º de la ESO
Prueba de evaluación Geografía e Historia Comunidad de Madrid 2º de la ESOPrueba de evaluación Geografía e Historia Comunidad de Madrid 2º de la ESO
Prueba de evaluación Geografía e Historia Comunidad de Madrid 2º de la ESOluismii249
 
Tema 17. Biología de los microorganismos 2024
Tema 17. Biología de los microorganismos 2024Tema 17. Biología de los microorganismos 2024
Tema 17. Biología de los microorganismos 2024IES Vicent Andres Estelles
 
Biografía de Charles Coulomb física .pdf
Biografía de Charles Coulomb física .pdfBiografía de Charles Coulomb física .pdf
Biografía de Charles Coulomb física .pdfGruberACaraballo
 
Procedimientos para la planificación en los Centros Educativos tipo V ( multi...
Procedimientos para la planificación en los Centros Educativos tipo V ( multi...Procedimientos para la planificación en los Centros Educativos tipo V ( multi...
Procedimientos para la planificación en los Centros Educativos tipo V ( multi...Katherine Concepcion Gonzalez
 
TRABAJO FINAL TOPOGRAFÍA COMPLETO DE LA UPC
TRABAJO FINAL TOPOGRAFÍA COMPLETO DE LA UPCTRABAJO FINAL TOPOGRAFÍA COMPLETO DE LA UPC
TRABAJO FINAL TOPOGRAFÍA COMPLETO DE LA UPCCarlosEduardoSosa2
 
origen y desarrollo del ensayo literario
origen y desarrollo del ensayo literarioorigen y desarrollo del ensayo literario
origen y desarrollo del ensayo literarioELIASAURELIOCHAVEZCA1
 
BIOMETANO SÍ, PERO NO ASÍ. LA NUEVA BURBUJA ENERGÉTICA
BIOMETANO SÍ, PERO NO ASÍ. LA NUEVA BURBUJA ENERGÉTICABIOMETANO SÍ, PERO NO ASÍ. LA NUEVA BURBUJA ENERGÉTICA
BIOMETANO SÍ, PERO NO ASÍ. LA NUEVA BURBUJA ENERGÉTICAÁngel Encinas
 

Kürzlich hochgeladen (20)

LA LITERATURA DEL BARROCO 2023-2024pptx.pptx
LA LITERATURA DEL BARROCO 2023-2024pptx.pptxLA LITERATURA DEL BARROCO 2023-2024pptx.pptx
LA LITERATURA DEL BARROCO 2023-2024pptx.pptx
 
CONCURSO NACIONAL JOSE MARIA ARGUEDAS.pptx
CONCURSO NACIONAL JOSE MARIA ARGUEDAS.pptxCONCURSO NACIONAL JOSE MARIA ARGUEDAS.pptx
CONCURSO NACIONAL JOSE MARIA ARGUEDAS.pptx
 
Prueba libre de Geografía para obtención título Bachillerato - 2024
Prueba libre de Geografía para obtención título Bachillerato - 2024Prueba libre de Geografía para obtención título Bachillerato - 2024
Prueba libre de Geografía para obtención título Bachillerato - 2024
 
🦄💫4° SEM32 WORD PLANEACIÓN PROYECTOS DARUKEL 23-24.docx
🦄💫4° SEM32 WORD PLANEACIÓN PROYECTOS DARUKEL 23-24.docx🦄💫4° SEM32 WORD PLANEACIÓN PROYECTOS DARUKEL 23-24.docx
🦄💫4° SEM32 WORD PLANEACIÓN PROYECTOS DARUKEL 23-24.docx
 
Prueba de evaluación Geografía e Historia Comunidad de Madrid 4ºESO
Prueba de evaluación Geografía e Historia Comunidad de Madrid 4ºESOPrueba de evaluación Geografía e Historia Comunidad de Madrid 4ºESO
Prueba de evaluación Geografía e Historia Comunidad de Madrid 4ºESO
 
PLAN DE REFUERZO ESCOLAR MERC 2024-2.docx
PLAN DE REFUERZO ESCOLAR MERC 2024-2.docxPLAN DE REFUERZO ESCOLAR MERC 2024-2.docx
PLAN DE REFUERZO ESCOLAR MERC 2024-2.docx
 
Sesión de clase APC: Los dos testigos.pdf
Sesión de clase APC: Los dos testigos.pdfSesión de clase APC: Los dos testigos.pdf
Sesión de clase APC: Los dos testigos.pdf
 
Análisis de los Factores Externos de la Organización.
Análisis de los Factores Externos de la Organización.Análisis de los Factores Externos de la Organización.
Análisis de los Factores Externos de la Organización.
 
SISTEMA RESPIRATORIO PARA NIÑOS PRIMARIA
SISTEMA RESPIRATORIO PARA NIÑOS PRIMARIASISTEMA RESPIRATORIO PARA NIÑOS PRIMARIA
SISTEMA RESPIRATORIO PARA NIÑOS PRIMARIA
 
SESION DE PERSONAL SOCIAL. La convivencia en familia 22-04-24 -.doc
SESION DE PERSONAL SOCIAL.  La convivencia en familia 22-04-24  -.docSESION DE PERSONAL SOCIAL.  La convivencia en familia 22-04-24  -.doc
SESION DE PERSONAL SOCIAL. La convivencia en familia 22-04-24 -.doc
 
Proyecto de aprendizaje dia de la madre MINT.pdf
Proyecto de aprendizaje dia de la madre MINT.pdfProyecto de aprendizaje dia de la madre MINT.pdf
Proyecto de aprendizaje dia de la madre MINT.pdf
 
TEMA 14.DERIVACIONES ECONÓMICAS, SOCIALES Y POLÍTICAS DEL PROCESO DE INTEGRAC...
TEMA 14.DERIVACIONES ECONÓMICAS, SOCIALES Y POLÍTICAS DEL PROCESO DE INTEGRAC...TEMA 14.DERIVACIONES ECONÓMICAS, SOCIALES Y POLÍTICAS DEL PROCESO DE INTEGRAC...
TEMA 14.DERIVACIONES ECONÓMICAS, SOCIALES Y POLÍTICAS DEL PROCESO DE INTEGRAC...
 
Prueba de evaluación Geografía e Historia Comunidad de Madrid 2º de la ESO
Prueba de evaluación Geografía e Historia Comunidad de Madrid 2º de la ESOPrueba de evaluación Geografía e Historia Comunidad de Madrid 2º de la ESO
Prueba de evaluación Geografía e Historia Comunidad de Madrid 2º de la ESO
 
Tema 17. Biología de los microorganismos 2024
Tema 17. Biología de los microorganismos 2024Tema 17. Biología de los microorganismos 2024
Tema 17. Biología de los microorganismos 2024
 
Biografía de Charles Coulomb física .pdf
Biografía de Charles Coulomb física .pdfBiografía de Charles Coulomb física .pdf
Biografía de Charles Coulomb física .pdf
 
Power Point: Fe contra todo pronóstico.pptx
Power Point: Fe contra todo pronóstico.pptxPower Point: Fe contra todo pronóstico.pptx
Power Point: Fe contra todo pronóstico.pptx
 
Procedimientos para la planificación en los Centros Educativos tipo V ( multi...
Procedimientos para la planificación en los Centros Educativos tipo V ( multi...Procedimientos para la planificación en los Centros Educativos tipo V ( multi...
Procedimientos para la planificación en los Centros Educativos tipo V ( multi...
 
TRABAJO FINAL TOPOGRAFÍA COMPLETO DE LA UPC
TRABAJO FINAL TOPOGRAFÍA COMPLETO DE LA UPCTRABAJO FINAL TOPOGRAFÍA COMPLETO DE LA UPC
TRABAJO FINAL TOPOGRAFÍA COMPLETO DE LA UPC
 
origen y desarrollo del ensayo literario
origen y desarrollo del ensayo literarioorigen y desarrollo del ensayo literario
origen y desarrollo del ensayo literario
 
BIOMETANO SÍ, PERO NO ASÍ. LA NUEVA BURBUJA ENERGÉTICA
BIOMETANO SÍ, PERO NO ASÍ. LA NUEVA BURBUJA ENERGÉTICABIOMETANO SÍ, PERO NO ASÍ. LA NUEVA BURBUJA ENERGÉTICA
BIOMETANO SÍ, PERO NO ASÍ. LA NUEVA BURBUJA ENERGÉTICA
 

Grupo 11.docx

  • 1. TALLER INDIVUIDUAL SENTENCAS DE CONTROL (10 PUNTOS) 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 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 1. If (Cal > 8) 2. Cout<<”aprobado”; DIAGRAMA 2 SENTENCIA 2 1. If (condicion1) 2. Bloque 1; 3. Else 4. { 5. If (condicion2) 6. Bloque 2; 7. Else 8. Bloque 3;
  • 2. DIAGRAMA 3 SENTENCIA 3 1. If (edad>=18) 2. Cout<<”Es mayor de edad”; DIAGRAMA 4 SENTENCIA 4 1. Cout<<”Quiero café”; 2. If (¿Hay café hecho? 3. Cout <<”calentar café”; 4. Else 5. Cout<<”gacer café”; 6. Cout<<”servir en taza y añadir azucar”; 7. If (¿Está dulce) 8. Cout<<”Tomar café”; 9. Elsez<<”añadir azucar”;
  • 3. DIAGRAMA 5 SENTENCIA 5 1. If(A>B) 2. { 3. Cout<<”A es mayor que B”; 4. } 5. Else 6. { 7. If(A=B) 8. { 9. Cout<<”A es igual a B”; 10. } 11. Else 12. { 13. Cout<<”A es menor que B” 14. } DIAGRAMA 6 SENTENCIA 6 1. If( condición 1) 2. { 3. //instrucción1 4. } 5. Else 6. { 7. If( condición2) 8. {´ 9. //instrucción2 10. } 11. Else 12. { 13. If(condición3) 14. { 15. //instrucción3 16. } 17. } 18. }
  • 4. DIAGRAMA 7 SENTENCIA 7 1. 2. If(A>B) 18. Cout<<C<<C<<A; 3. { 19. } 4. If(A>B) 20. Else 5. { 21. Cout<<C<<B<<A; 6. If(B>C) 22. } 7. Cout<<A<<B<<C; 8. Else 9. Cout<<C<<A<<B; 10. } 11. Else 12. { 13. If(B>C) 14. { 15. If(A>C) 16. Cout<<B<<A<<C; 17. Else ls SENTENCIA 8 1. If(Condición 1) 2. { 3. If(Condición 2) 4. { 5. Sentencias A; 6. } 7. Else 8. { 9. Sentencias B; 10. } 11. } 12. Else 13. { 14. Sentencias C; 15. }
  • 5. DIAGRAMA 9 SENTENCIA 9 1. If(Numero>6) 2. { 3. Cout<<”Aprobo la materia”; 4. } 5. Else 6. { 7. Cout<<”No aprobo la materia”; 8. } 9. If(numero>=8) 10. { 11. Cout>>”Puede ganar una beca”; 12. } 13. Return 0; 14. } DIAGRAMA 10 SENTENCIA 10 1. If(Modo por tiempo seleccionado) 2. { 3. Dar la orden de encender el motor; 4. Encender el motor; 5. Dar la orden…..; 6. Apagar el motor; 7. } 8. Else 9. If(…) 10. { 11. Encender 12. Generar 13. Apagar 14. }