SlideShare una empresa de Scribd logo
ALGORITMOS
CON CICLO
REPETITIVOS
(mientras que)
Autoras: Liliana V. Vergara
Mabel C. Barragán
ALGORITMO
• Un señor tiene 40 alcancías. Cada alcancía
contiene n1 monedas de 50 cts., n2 de 25 cts.,
n3 de 10 cts., n4 de 5 cts., y n5 de 1 ctv.
Escriba un programa para conocer cuanto
dinero hay en cada alcancía.
ANALISIS DEL PROBLEMA
• Formular problema: no tenemos cuanto
dinero hay en cada alcancía
• Resultados esperados: saber cuanto dinero
hay en cada alcancía
• Restricciones: cuantas monedas hay de cada
valor ni como están distribuidas
• Datos disponibles: tenemos n1 de 50 cts., n2
de 25 cts., n3 de 10 cts., n4 de 5 cts., y n5 de 1
ctv.
• Procesos necesarios: ciclo repetitivo mientras
que
PSEUDOCODIGO
• Proceso alcancía
• cont<-1
•
• Si cont<3 Entonces
• Mientras (cont<41) Hacer
•
• Escribir "Escriba el numero de monedas de 50"
• Leer n1
• n1<-n1*50
• Escribir "Escriba el numero de monedas de 25"
• leer n2
• n2<-n2*25
• Escribir "Escriba el numero de monedas de 10"
• Leer n3
• n3<-n3*10
• Escribir "Escriba el numero de monedas de 5"
• leer n4
• n4<- n4 * 5
• Escribir "Escriba el numero de monedas de 1"
• leer n5
• n5<- n5 * 1
•
• cont2<-n1+n2+n3+n4+n5
•
• escribir "la alcancía ",cont," tiene ",(cont2)," monedas"
• escribir " "
•
• cont<-cont+1
•
• Fin Mientras
• Fin Si
•
• Fin Proceso
DIAGRAMA DE FLUJO DE DATOS
Algoritmos con ciclos repetitivos

Más contenido relacionado

Último

561425171-5-1-Modelos-de-Pronosticos.pptx
561425171-5-1-Modelos-de-Pronosticos.pptx561425171-5-1-Modelos-de-Pronosticos.pptx
561425171-5-1-Modelos-de-Pronosticos.pptx
Angel Tello
 
PRINCIPALES CARACTERISTICAS DE EL PH.pptx
PRINCIPALES CARACTERISTICAS DE EL PH.pptxPRINCIPALES CARACTERISTICAS DE EL PH.pptx
PRINCIPALES CARACTERISTICAS DE EL PH.pptx
MONICADELROCIOMUNZON1
 
ANALISIS ESTRUCTURALES SAP2000 EN SISTEMAS ESTRUCTURALES
ANALISIS ESTRUCTURALES SAP2000 EN SISTEMAS ESTRUCTURALESANALISIS ESTRUCTURALES SAP2000 EN SISTEMAS ESTRUCTURALES
ANALISIS ESTRUCTURALES SAP2000 EN SISTEMAS ESTRUCTURALES
John Paul Collazos Campos
 
Klohn Crippen Berger _ Brochure LAM .pdf
Klohn Crippen Berger _ Brochure LAM .pdfKlohn Crippen Berger _ Brochure LAM .pdf
Klohn Crippen Berger _ Brochure LAM .pdf
ciniguez1
 
NRF-032-PEMEX-2012 DISEÑO DE TUBERIA.pdf
NRF-032-PEMEX-2012 DISEÑO DE TUBERIA.pdfNRF-032-PEMEX-2012 DISEÑO DE TUBERIA.pdf
NRF-032-PEMEX-2012 DISEÑO DE TUBERIA.pdf
LambertoAugurioMarti1
 
MATERIALES PELIGROSOS NIVEL DE ADVERTENCIA
MATERIALES PELIGROSOS NIVEL DE ADVERTENCIAMATERIALES PELIGROSOS NIVEL DE ADVERTENCIA
MATERIALES PELIGROSOS NIVEL DE ADVERTENCIA
ROXYLOPEZ10
 
Pasamuros Cortafuego - Industrias Metalfox
Pasamuros Cortafuego - Industrias MetalfoxPasamuros Cortafuego - Industrias Metalfox
Pasamuros Cortafuego - Industrias Metalfox
INDUSTRIAS METALFOX S.A.S.
 
Programas relacionado a telecomunicaciones.pptx
Programas relacionado a telecomunicaciones.pptxProgramas relacionado a telecomunicaciones.pptx
Programas relacionado a telecomunicaciones.pptx
AndrsSerrano23
 
infiltracion del agua en los suelos de diferentes tipos
infiltracion del agua en los suelos de diferentes tiposinfiltracion del agua en los suelos de diferentes tipos
infiltracion del agua en los suelos de diferentes tipos
SANTOSESTANISLAORODR
 
Unidad 2 - Cargas en las estructuras.pdf
Unidad 2 - Cargas en las estructuras.pdfUnidad 2 - Cargas en las estructuras.pdf
Unidad 2 - Cargas en las estructuras.pdf
oagalarraga
 
Fundamentos-Ensayos-Al-Fuego de oro y plata
Fundamentos-Ensayos-Al-Fuego de oro  y plataFundamentos-Ensayos-Al-Fuego de oro  y plata
Fundamentos-Ensayos-Al-Fuego de oro y plata
RobertoChvez25
 
4.3 Balanceo de líneas de ensamble para la producción simultánea de más de un...
4.3 Balanceo de líneas de ensamble para la producción simultánea de más de un...4.3 Balanceo de líneas de ensamble para la producción simultánea de más de un...
4.3 Balanceo de líneas de ensamble para la producción simultánea de más de un...
miguel231958
 
CARRETERAS MÁS IMPORTANTES DEL PERU ALESSANDRA.pptx
CARRETERAS MÁS IMPORTANTES DEL PERU ALESSANDRA.pptxCARRETERAS MÁS IMPORTANTES DEL PERU ALESSANDRA.pptx
CARRETERAS MÁS IMPORTANTES DEL PERU ALESSANDRA.pptx
0602021003
 
26.-MARZO-SECTOR-MINERO-IDENTIFICACIÓN-DE-PELIGROS-Y-RIESGOS-CON-ENFOQUE-A-P...
26.-MARZO-SECTOR-MINERO-IDENTIFICACIÓN-DE-PELIGROS-Y-RIESGOS-CON-ENFOQUE-A-P...26.-MARZO-SECTOR-MINERO-IDENTIFICACIÓN-DE-PELIGROS-Y-RIESGOS-CON-ENFOQUE-A-P...
26.-MARZO-SECTOR-MINERO-IDENTIFICACIÓN-DE-PELIGROS-Y-RIESGOS-CON-ENFOQUE-A-P...
FlavioMedina10
 
Control Industrial control de procesos .pptx
Control Industrial control de procesos .pptxControl Industrial control de procesos .pptx
Control Industrial control de procesos .pptx
Efrain Yungan
 
Aletas (Superficies extendidas) y aislantes térmicos
Aletas (Superficies extendidas) y aislantes térmicosAletas (Superficies extendidas) y aislantes térmicos
Aletas (Superficies extendidas) y aislantes térmicos
FrancelisFernandez
 
1 ANALISIS DE MASA Y ENERGÍA DE VOLÚMENES DE CONTROL [Autoguardado].pptx
1 ANALISIS DE MASA Y ENERGÍA DE VOLÚMENES DE CONTROL [Autoguardado].pptx1 ANALISIS DE MASA Y ENERGÍA DE VOLÚMENES DE CONTROL [Autoguardado].pptx
1 ANALISIS DE MASA Y ENERGÍA DE VOLÚMENES DE CONTROL [Autoguardado].pptx
RenanWVargas
 
Normatividad y Regulación Energética - Introducción
Normatividad y Regulación Energética - IntroducciónNormatividad y Regulación Energética - Introducción
Normatividad y Regulación Energética - Introducción
José Andrés Alanís Navarro
 
CURSO COMPLETO FIBRA OPTICA MULTIMODO.pdf
CURSO COMPLETO FIBRA OPTICA MULTIMODO.pdfCURSO COMPLETO FIBRA OPTICA MULTIMODO.pdf
CURSO COMPLETO FIBRA OPTICA MULTIMODO.pdf
DanielCisternasCorte
 
Aletas de Transferencia de Calor Jefferson Colina.pptx
Aletas de Transferencia de Calor Jefferson Colina.pptxAletas de Transferencia de Calor Jefferson Colina.pptx
Aletas de Transferencia de Calor Jefferson Colina.pptx
jeffersoncolina427
 

Último (20)

561425171-5-1-Modelos-de-Pronosticos.pptx
561425171-5-1-Modelos-de-Pronosticos.pptx561425171-5-1-Modelos-de-Pronosticos.pptx
561425171-5-1-Modelos-de-Pronosticos.pptx
 
PRINCIPALES CARACTERISTICAS DE EL PH.pptx
PRINCIPALES CARACTERISTICAS DE EL PH.pptxPRINCIPALES CARACTERISTICAS DE EL PH.pptx
PRINCIPALES CARACTERISTICAS DE EL PH.pptx
 
ANALISIS ESTRUCTURALES SAP2000 EN SISTEMAS ESTRUCTURALES
ANALISIS ESTRUCTURALES SAP2000 EN SISTEMAS ESTRUCTURALESANALISIS ESTRUCTURALES SAP2000 EN SISTEMAS ESTRUCTURALES
ANALISIS ESTRUCTURALES SAP2000 EN SISTEMAS ESTRUCTURALES
 
Klohn Crippen Berger _ Brochure LAM .pdf
Klohn Crippen Berger _ Brochure LAM .pdfKlohn Crippen Berger _ Brochure LAM .pdf
Klohn Crippen Berger _ Brochure LAM .pdf
 
NRF-032-PEMEX-2012 DISEÑO DE TUBERIA.pdf
NRF-032-PEMEX-2012 DISEÑO DE TUBERIA.pdfNRF-032-PEMEX-2012 DISEÑO DE TUBERIA.pdf
NRF-032-PEMEX-2012 DISEÑO DE TUBERIA.pdf
 
MATERIALES PELIGROSOS NIVEL DE ADVERTENCIA
MATERIALES PELIGROSOS NIVEL DE ADVERTENCIAMATERIALES PELIGROSOS NIVEL DE ADVERTENCIA
MATERIALES PELIGROSOS NIVEL DE ADVERTENCIA
 
Pasamuros Cortafuego - Industrias Metalfox
Pasamuros Cortafuego - Industrias MetalfoxPasamuros Cortafuego - Industrias Metalfox
Pasamuros Cortafuego - Industrias Metalfox
 
Programas relacionado a telecomunicaciones.pptx
Programas relacionado a telecomunicaciones.pptxProgramas relacionado a telecomunicaciones.pptx
Programas relacionado a telecomunicaciones.pptx
 
infiltracion del agua en los suelos de diferentes tipos
infiltracion del agua en los suelos de diferentes tiposinfiltracion del agua en los suelos de diferentes tipos
infiltracion del agua en los suelos de diferentes tipos
 
Unidad 2 - Cargas en las estructuras.pdf
Unidad 2 - Cargas en las estructuras.pdfUnidad 2 - Cargas en las estructuras.pdf
Unidad 2 - Cargas en las estructuras.pdf
 
Fundamentos-Ensayos-Al-Fuego de oro y plata
Fundamentos-Ensayos-Al-Fuego de oro  y plataFundamentos-Ensayos-Al-Fuego de oro  y plata
Fundamentos-Ensayos-Al-Fuego de oro y plata
 
4.3 Balanceo de líneas de ensamble para la producción simultánea de más de un...
4.3 Balanceo de líneas de ensamble para la producción simultánea de más de un...4.3 Balanceo de líneas de ensamble para la producción simultánea de más de un...
4.3 Balanceo de líneas de ensamble para la producción simultánea de más de un...
 
CARRETERAS MÁS IMPORTANTES DEL PERU ALESSANDRA.pptx
CARRETERAS MÁS IMPORTANTES DEL PERU ALESSANDRA.pptxCARRETERAS MÁS IMPORTANTES DEL PERU ALESSANDRA.pptx
CARRETERAS MÁS IMPORTANTES DEL PERU ALESSANDRA.pptx
 
26.-MARZO-SECTOR-MINERO-IDENTIFICACIÓN-DE-PELIGROS-Y-RIESGOS-CON-ENFOQUE-A-P...
26.-MARZO-SECTOR-MINERO-IDENTIFICACIÓN-DE-PELIGROS-Y-RIESGOS-CON-ENFOQUE-A-P...26.-MARZO-SECTOR-MINERO-IDENTIFICACIÓN-DE-PELIGROS-Y-RIESGOS-CON-ENFOQUE-A-P...
26.-MARZO-SECTOR-MINERO-IDENTIFICACIÓN-DE-PELIGROS-Y-RIESGOS-CON-ENFOQUE-A-P...
 
Control Industrial control de procesos .pptx
Control Industrial control de procesos .pptxControl Industrial control de procesos .pptx
Control Industrial control de procesos .pptx
 
Aletas (Superficies extendidas) y aislantes térmicos
Aletas (Superficies extendidas) y aislantes térmicosAletas (Superficies extendidas) y aislantes térmicos
Aletas (Superficies extendidas) y aislantes térmicos
 
1 ANALISIS DE MASA Y ENERGÍA DE VOLÚMENES DE CONTROL [Autoguardado].pptx
1 ANALISIS DE MASA Y ENERGÍA DE VOLÚMENES DE CONTROL [Autoguardado].pptx1 ANALISIS DE MASA Y ENERGÍA DE VOLÚMENES DE CONTROL [Autoguardado].pptx
1 ANALISIS DE MASA Y ENERGÍA DE VOLÚMENES DE CONTROL [Autoguardado].pptx
 
Normatividad y Regulación Energética - Introducción
Normatividad y Regulación Energética - IntroducciónNormatividad y Regulación Energética - Introducción
Normatividad y Regulación Energética - Introducción
 
CURSO COMPLETO FIBRA OPTICA MULTIMODO.pdf
CURSO COMPLETO FIBRA OPTICA MULTIMODO.pdfCURSO COMPLETO FIBRA OPTICA MULTIMODO.pdf
CURSO COMPLETO FIBRA OPTICA MULTIMODO.pdf
 
Aletas de Transferencia de Calor Jefferson Colina.pptx
Aletas de Transferencia de Calor Jefferson Colina.pptxAletas de Transferencia de Calor Jefferson Colina.pptx
Aletas de Transferencia de Calor Jefferson Colina.pptx
 

Destacado

Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
Skeleton Technologies
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
SpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Lily Ray
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
Rajiv Jayarajah, MAppComm, ACC
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
Christy Abraham Joy
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
Vit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
MindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
GetSmarter
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
Alireza Esmikhani
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
Project for Public Spaces & National Center for Biking and Walking
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
DevGAMM Conference
 

Destacado (20)

Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 

Algoritmos con ciclos repetitivos

  • 1. ALGORITMOS CON CICLO REPETITIVOS (mientras que) Autoras: Liliana V. Vergara Mabel C. Barragán
  • 2. ALGORITMO • Un señor tiene 40 alcancías. Cada alcancía contiene n1 monedas de 50 cts., n2 de 25 cts., n3 de 10 cts., n4 de 5 cts., y n5 de 1 ctv. Escriba un programa para conocer cuanto dinero hay en cada alcancía.
  • 3. ANALISIS DEL PROBLEMA • Formular problema: no tenemos cuanto dinero hay en cada alcancía • Resultados esperados: saber cuanto dinero hay en cada alcancía • Restricciones: cuantas monedas hay de cada valor ni como están distribuidas • Datos disponibles: tenemos n1 de 50 cts., n2 de 25 cts., n3 de 10 cts., n4 de 5 cts., y n5 de 1 ctv. • Procesos necesarios: ciclo repetitivo mientras que
  • 4. PSEUDOCODIGO • Proceso alcancía • cont<-1 • • Si cont<3 Entonces • Mientras (cont<41) Hacer • • Escribir "Escriba el numero de monedas de 50" • Leer n1 • n1<-n1*50 • Escribir "Escriba el numero de monedas de 25" • leer n2 • n2<-n2*25 • Escribir "Escriba el numero de monedas de 10" • Leer n3 • n3<-n3*10 • Escribir "Escriba el numero de monedas de 5" • leer n4 • n4<- n4 * 5 • Escribir "Escriba el numero de monedas de 1" • leer n5 • n5<- n5 * 1 • • cont2<-n1+n2+n3+n4+n5 • • escribir "la alcancía ",cont," tiene ",(cont2)," monedas" • escribir " " • • cont<-cont+1 • • Fin Mientras • Fin Si • • Fin Proceso
  • 5. DIAGRAMA DE FLUJO DE DATOS