InformáticaBásico1 respuestas

Seudocodigo que permita 9ngreasr 3 numeros presentarlos en orden descendenteayudenme por favornecesito urgente?

Seudocodigo que permita 9ngreasr 3 numeros presentarlos en orden descendente ayudenme por favor necesito urgente.

3Geovanyy1993cacho

En resumen

Hola.

Mejor respuesta

Chcijjckndj

7

Hola.

Una forma de hacerlo (seguramente no la más eficiente) seria

Variables

Datos de Entrada

N1, N2, N3 = Numeros ingresados por teclado

Datos de Salida

MAY = Numero mayor ingresado

MED = Numero entre el mayor y el menor ingresado

MEN = Numero menor ingresado

INICIO

Escribir "Ingrese 3 numeros"

Leer N1, N2, N3

SI N1 > N2 && N1 > N3 ENTONCES MAY = N1

SINO SI N2 > N3 ENTONCES MAY = N2 SINO MAY = N3 FINSI

FINSI

SI N1 < N2 && N1 < N3 ENTONCES MEN = N1

SINO SI N2 < N3 ENTONCES MEN = N2 SINO MEN = N3 FINSI

FINSI

SI N1 MAY && N1 MEN ENTONCES MED = N1

SINO SI N2 N3 ENTONCES MED = N2 SINO MED = N3 FINSI

FINSI

Escribir MAY

Escribir MED

Escribir MEN

FIN

Un cordial saludo.