SlideShare una empresa de Scribd logo
1 de 17
Algoritmos
*/ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx */

*/ Programa área del circulo

*/ Descripción hallar el área del circulo, si nos dan el valor del radio

*/ Autor: Marlon Hernández

*/Fecha: 28-08-12

*/ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx */

*/ Cabecera

Algoritmo área del circulo

*/ Declaración

Constante

Pi= 3,1416

Variables

Real=radio, area

INICIO

Escribir: ”por favor escribir el valor del radio”

Leer: radio

area← 1pi*radio**2

Escribir: “el área del circulo es”area

FIN
Por favor escribir el valor del radio 3

El área del círculo es 27
*/ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx */

*/ Programa área del trapecio

*/ Descripción hallar el área del trapecio en m**2, si nos dan el valor de
base mayor, base menor, y altura

*/ Autor: Marlon Hernández

*/Fecha: 28-08-12

*/ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx */

*/ Cabecera

Algoritmo área del trapecio en m**2

*/ Declaración

Variables

reales, área

INICIO

Escribir: “por favor escribir base mayor”

Leer: base mayor

Escribir: “por favor escribir base menor”

Leer: base menor

Escribir: “por favor escribir altura”

Leer: altura

Suma← (base mayor + base menor)/2*altura

Escribir: “el área del trapecio es “área”**2”

FIN
Por favor escribir base mayor 8

Por favor escribir base menor 4

Por favor escribir altura 2

el área del trapecio es 36
*/ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx */

*/ Programa suma de dos enteros

*/ Descripción hallar el valor de la suma de dos enteros

*/ Autor: Marlon Hernández

*/Fecha: 28-08-12

*/ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx */

*/ Cabecera

Algoritmo suma de dos enteros

*/ Declaración

Variables

Enteros, suma

INICIO

Escribir: ”por favor escribir el 1. Entero”

Leer: 1_entero

Escribir: “por favor escribir el 2. Entero”

Leer: 2_entero

Suma← 1_entero + 2_entero

Escribir: “la suma de los dos enteros es” suma

FIN
Por favor escribir el 1. Entero 8

Por favor escribir el 2. Entero 10

La suma de los dos enteros es 18
*/ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx */

*/ Programa resta de dos enteros

*/ Descripción hallar el valor de la resta de dos enteros

*/ Autor: Marlon Hernández

*/Fecha: 28-08-12

*/ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx */

*/ Cabecera

Algoritmo resta de dos enteros

*/ Declaración

Variables

Enteros, resta

INICIO

Escribir: “por favor escribir el 1. Entero”

Leer: 1_entero

Escribir: “por favor escribir el 2. Entero”

Leer: 2_entero

resta← 1_entero - 2_entero

Escribir: “la resta de los dos enteros es” resta

FIN
Por favor escribir el 1. Entero 5

Por favor escribir el 2. Entero 4

La resta de los dos enteros es 1
*/ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx */

*/ Programa multiplicación de dos enteros

*/ Descripción hallar el valor de la multiplicación de dos enteros

*/ Autor: Marlon Hernández

*/Fecha: 28-08-12

*/ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx */

*/ Cabecera

Algoritmo multiplicación de dos enteros

*/ Declaración

Variables

Enteros, multiplicación

INICIO

Escribir: “por favor escribir el 1. Entero”

Leer: 1_entero

Escribir: “por favor escribir el 2. Entero”

Leer: 2_entero

resta← 1_entero * 2_entero

Escribir: “la multiplicación de los dos enteros es” multiplicación

FIN
Por favor escribir el 1. Entero 5

Por favor escribir el 2. Entero 3

La multiplicación de los dos enteros es 15
*/ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx */

*/ Programa división de dos enteros

*/ Descripción hallar el valor de la división de dos enteros

*/ Autor: Marlon Hernández

*/Fecha: 28-08-12

*/ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx */

*/ Cabecera

Algoritmo división de dos enteros

*/ Declaración

Variables

Enteros, división

INICIO

Escribir: “por favor escribir el 1. Entero”

Leer: 1_entero

Escribir: “por favor escribir el 2. Entero”

Leer: 2_entero

resta← 1_entero / 2_entero

Escribir: “la división de los dos enteros es” división

FIN
por favor escribir el 1. Entero 10

por favor escribir el 2. Entero 2

la división de los dos enteros es 5
*/ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx */

*/ Programa división entera de dos enteros

*/ Descripción hallar el valor de la división entera de dos enteros

*/ Autor: Marlon Hernández

*/Fecha: 28-08-12

*/ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx */

*/ Cabecera

Algoritmo división entera de dos enteros

*/ Declaración

Variables

Enteros, división entera

INICIO

Escribir: “por favor escribir el 1. Enteros”

Leer: 1_entero

Escribir: “por favor escribir el 2. Entero”

Leer: 2_entero

resta← 1_entero div 2_entero

Escribir: “la división entera de los dos enteros es” división entera

FIN
por favor escribir el 1. Enteros 13

por favor escribir el 2. Entero 2

la división entera de los dos enteros es 6
*/ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx */

*/ Programa mod de dos enteros

*/ Descripción hallar el valor de la mod de dos enteros

*/ Autor: Marlon Hernández

*/Fecha: 28-08-12

*/ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx */

*/ Cabecera

Algoritmo mod de dos enteros

*/ Declaración

Variables

Enteros, mod

INICIO

Escribir: “por favor escribir el 1. Entero”

Leer: 1_entero

Escribir: “por favor escribir el 2. Entero”

Leer: 2_entero

resta← 1_entero mod 2_entero

Escribir: “el mod de los dos enteros es” mod

FIN
Por favor escribir el 1. Entero 13

Por favor escribir el 2. Entero 2

elmod de los dos enteros es 1

Más contenido relacionado

Destacado

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by HubspotMarius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
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 2024Neil 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 2024Albert 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 InsightsKurio // 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 2024Search 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 summarySpeakerHub
 
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 IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit 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 managementMindGenius
 
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
 

Destacado (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
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...
 

Algoritmos

  • 2. */ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx */ */ Programa área del circulo */ Descripción hallar el área del circulo, si nos dan el valor del radio */ Autor: Marlon Hernández */Fecha: 28-08-12 */ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx */ */ Cabecera Algoritmo área del circulo */ Declaración Constante Pi= 3,1416 Variables Real=radio, area INICIO Escribir: ”por favor escribir el valor del radio” Leer: radio area← 1pi*radio**2 Escribir: “el área del circulo es”area FIN
  • 3. Por favor escribir el valor del radio 3 El área del círculo es 27
  • 4. */ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx */ */ Programa área del trapecio */ Descripción hallar el área del trapecio en m**2, si nos dan el valor de base mayor, base menor, y altura */ Autor: Marlon Hernández */Fecha: 28-08-12 */ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx */ */ Cabecera Algoritmo área del trapecio en m**2 */ Declaración Variables reales, área INICIO Escribir: “por favor escribir base mayor” Leer: base mayor Escribir: “por favor escribir base menor” Leer: base menor Escribir: “por favor escribir altura” Leer: altura Suma← (base mayor + base menor)/2*altura Escribir: “el área del trapecio es “área”**2” FIN
  • 5. Por favor escribir base mayor 8 Por favor escribir base menor 4 Por favor escribir altura 2 el área del trapecio es 36
  • 6. */ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx */ */ Programa suma de dos enteros */ Descripción hallar el valor de la suma de dos enteros */ Autor: Marlon Hernández */Fecha: 28-08-12 */ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx */ */ Cabecera Algoritmo suma de dos enteros */ Declaración Variables Enteros, suma INICIO Escribir: ”por favor escribir el 1. Entero” Leer: 1_entero Escribir: “por favor escribir el 2. Entero” Leer: 2_entero Suma← 1_entero + 2_entero Escribir: “la suma de los dos enteros es” suma FIN
  • 7. Por favor escribir el 1. Entero 8 Por favor escribir el 2. Entero 10 La suma de los dos enteros es 18
  • 8. */ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx */ */ Programa resta de dos enteros */ Descripción hallar el valor de la resta de dos enteros */ Autor: Marlon Hernández */Fecha: 28-08-12 */ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx */ */ Cabecera Algoritmo resta de dos enteros */ Declaración Variables Enteros, resta INICIO Escribir: “por favor escribir el 1. Entero” Leer: 1_entero Escribir: “por favor escribir el 2. Entero” Leer: 2_entero resta← 1_entero - 2_entero Escribir: “la resta de los dos enteros es” resta FIN
  • 9. Por favor escribir el 1. Entero 5 Por favor escribir el 2. Entero 4 La resta de los dos enteros es 1
  • 10. */ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx */ */ Programa multiplicación de dos enteros */ Descripción hallar el valor de la multiplicación de dos enteros */ Autor: Marlon Hernández */Fecha: 28-08-12 */ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx */ */ Cabecera Algoritmo multiplicación de dos enteros */ Declaración Variables Enteros, multiplicación INICIO Escribir: “por favor escribir el 1. Entero” Leer: 1_entero Escribir: “por favor escribir el 2. Entero” Leer: 2_entero resta← 1_entero * 2_entero Escribir: “la multiplicación de los dos enteros es” multiplicación FIN
  • 11. Por favor escribir el 1. Entero 5 Por favor escribir el 2. Entero 3 La multiplicación de los dos enteros es 15
  • 12. */ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx */ */ Programa división de dos enteros */ Descripción hallar el valor de la división de dos enteros */ Autor: Marlon Hernández */Fecha: 28-08-12 */ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx */ */ Cabecera Algoritmo división de dos enteros */ Declaración Variables Enteros, división INICIO Escribir: “por favor escribir el 1. Entero” Leer: 1_entero Escribir: “por favor escribir el 2. Entero” Leer: 2_entero resta← 1_entero / 2_entero Escribir: “la división de los dos enteros es” división FIN
  • 13. por favor escribir el 1. Entero 10 por favor escribir el 2. Entero 2 la división de los dos enteros es 5
  • 14. */ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx */ */ Programa división entera de dos enteros */ Descripción hallar el valor de la división entera de dos enteros */ Autor: Marlon Hernández */Fecha: 28-08-12 */ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx */ */ Cabecera Algoritmo división entera de dos enteros */ Declaración Variables Enteros, división entera INICIO Escribir: “por favor escribir el 1. Enteros” Leer: 1_entero Escribir: “por favor escribir el 2. Entero” Leer: 2_entero resta← 1_entero div 2_entero Escribir: “la división entera de los dos enteros es” división entera FIN
  • 15. por favor escribir el 1. Enteros 13 por favor escribir el 2. Entero 2 la división entera de los dos enteros es 6
  • 16. */ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx */ */ Programa mod de dos enteros */ Descripción hallar el valor de la mod de dos enteros */ Autor: Marlon Hernández */Fecha: 28-08-12 */ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx */ */ Cabecera Algoritmo mod de dos enteros */ Declaración Variables Enteros, mod INICIO Escribir: “por favor escribir el 1. Entero” Leer: 1_entero Escribir: “por favor escribir el 2. Entero” Leer: 2_entero resta← 1_entero mod 2_entero Escribir: “el mod de los dos enteros es” mod FIN
  • 17. Por favor escribir el 1. Entero 13 Por favor escribir el 2. Entero 2 elmod de los dos enteros es 1