Ver Mensaje Individual
  #1 (permalink)  
Antiguo 15/01/2008, 03:23
Avatar de Mathico
Mathico
 
Fecha de Ingreso: enero-2008
Mensajes: 11
Antigüedad: 16 años, 5 meses
Puntos: 1
Voy avanzando.........necesito ayuda.....que no hay tiempo

Como me dijisteis caradura me puse a hacer los arrays, que eran extremadamente dificiles y esto es lo maximo k he podido conseguir. necesito esta ampliacion del programa para avanzar en mi lucha¡¡¡¡ Creo que es con if.....GRACIAS.....
#include<stdio.h>
#include <stdlib.h>
void ponerNotas(int a[], int n);
int mostrarNotas(int a[], int n);
float calcularMedia(int a[], int n);
int calcularMaxima(int a[], int n);

int main (void)
{
float m;
int n;
int notas[10];

ponerNotas(notas,10);

mostrarNotas(notas,10);

m=calcularMedia(notas,10);
//mostrar media
printf ("La media es %f\n",m);

n=calcularMaxima(notas,10);
//mostrar maxima nota
printf("La maxima nota es %d\n",n);

system("pause");

}

void ponerNotas(int a[], int n)
{
int i=0;
printf("Introduzca notas\n");
for(i=0;i<n;i++){
scanf("%d",&a[i]);
}
}