miércoles, 14 de abril de 2010

PRACTICA 9 PROBLEMA 1

CONSOLA



VISUAL




PSEUDOCÓDIGO



Inicio
temp [10] int
total = 0 int
I = 0 int
prom = 0 int
Print “Introduce los siguientes elementos”
For (I = 0 to 9 step I = I +1)
{
Print “Temp: “, I
Read temp [I]
total = total + temp [I]
}
prom = total / 10
For (I = 0 to 9 step I = I +1)
{
Print “Temperatura: “, temp[I]
}
Print “Promedio = “, prom
Fin


No hay comentarios:

Publicar un comentario