MEDIO ARMONICO
PSEUDOCODIGO
int[] x = { 1, 2, 3, 4, 5, 6, 7, 8, 9,10};
int maximo = x[0];
int minimo = x[0];
int N = 0, intervalo = 0;
for (N = 0 to N <= 15 step N++)
{
for (N = 0 to N <>
{
if (x[N] > maximo)
{
maximo = x[N];
}
if (x[N] <>
{
minimo = x[N];
}
}
intervalo = maximo - minimo;
print"El intervalo de los valores del arreglo x es:{0} ",intervalo;
int maximo = x[0];
int minimo = x[0];
int N = 0, intervalo = 0;
for (N = 0 to N <= 15 step N++)
{
for (N = 0 to N <>
{
if (x[N] > maximo)
{
maximo = x[N];
}
if (x[N] <>
{
minimo = x[N];
}
}
intervalo = maximo - minimo;
print"El intervalo de los valores del arreglo x es:{0} ",intervalo;
FIN
VISUAL