Algorithm Example In Pseudocode
An algorithm is a way of writing a programming code that is more suitable for our language. And that we as well as other people can see it. It does not necessarily have to be written in a specific programming language . By means of an algorithm , different programming languages can be easily passed , having the basic idea in the algorithm .
Words from our Spanish language can be used, or in English.
That is at the discretion of the person who performs the algorithm . There is
no exact way to perform an algorithm , but it is easily understood both for the
one who performs it, and for the one who has to review it.
Here I leave you 3 different example algorithms , they all
do the same solution, but they are written in different ways
Code:
valor = 0
Mientras (valor
sea menor a 20) {
mostrar
valor
valor =
valor + 1
Si (valor es igual a 10) {
mostrar "me gusta el 10"
}
}
Code: Code:
Inicio Programa
valor = 0
Mientras (valor sea menor a 20)
Mostrar
valor
valor++
Si
(valor es igual a 10)
Mostrar "me gusta el 10"
Fin Si
Fin Mientras
Fin Programa
valor = 0
while (valor>=20) {
show
valor
valor =
valor + 1
if
(valor==10) {
show "me gusta el 10"
}
]
Cited APA: Del Moral, M. & Rodriguez, J. (sf). Algorithm
Example In Pseudocode. Example of. Retrieved September 17, 2021 from
https://www.ejemplode.com/8-informatica/79-ejemplo_de_algoritmo_en_pseudocodigo.html
Computing
Author: Del Moral, Mauricio. & Rodriguez, Jennyfer.
Related Posts
• Autorun
• Antivirus
Comments
1. How to
make a pseudo-code to make a registration for a college.
By juanito sanchez 2016-10-12 at 21:36:15
2. How to
solve this algorithm?
Minimum temperature of the day, maximum infection of the
day, percentage of humidity in the environment, wind speed, percentage of
probability of rain.
Calculate and print.
Average temperature of the month, average humidity of the
month, average wind speed during the month, the lowest temperature recorded in
the month, the highest temperature recorded in the month, the highest
percentage of probability of rain of the month.
By alex 2012-05-23 at 16:37:03
3. Who can
help me solve the exercises on the first page of this site for some examples.
By samuel 2012-03-06 at 1:22:30
4. hello I
need you to help me make an algorithm that I do not understand .. could you
help me if you are so kind: it is to locate a character within a string to show
the number of strings found at the end.
By mirabel chamorro 2012-03-03 at 23:15:46
5. Develop an
algorithm in pseudocode and the flow diagram which calculates the area of a
right triangle, for this you must accept the three sides of the right triangle.
You must first verify that it is using the Pythagorean theorem, and if so,
calculate the area. Remember that to apply the Pythagorean Theorem you must
first find the hypotenuse with the longest side. Output the area of the triangle,
if not a message saying it is not a right triangle.
By fabian 2012-02-16 at 5:51:17
6. can
someone help me create an algorithm if. Thank you.
By juan carlos Rr 2012-01-30 at 22:35:53
7. I want
computer help
By Edwin 2011-10-26 at 3:59:02
8. I need you
to help me design an algorithm ... the exercises are these ...
1) determine the value of 4 numbers entered.
2) enter the data of a person with surnames, names and age;
If the person is of legal age, their ID number will be requested, otherwise
they will request the surname and name of the attorney-in-fact ... HELP ME !! *
By maria 2011-10-13 at 21:16:39
9. who can
help me to go from a programming language to pseudocode please
wako_102@hotmail.com
By Valencia 2011-10-08 at 19:07:20
10. Can you
help me to create an algorithm in pseudocode please.
By yaki 2011-10-07 at 2:11:1
Fuente:
https://www.ejemplode.com/8-informatica/79-ejemplo_de_algoritmo_en_pseudocodigo.html#ixzz7CTTPkvOr