Advertisement
rBBr

Maior Media (struct)

Nov 28th, 2015
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.25 KB | None | 0 0
  1. int maiorMedia(Aluno a[], int n){
  2.  
  3.     int i=0;
  4.     float maior=0;
  5.  
  6.     for(i=0;i<n;i++){
  7.         if(media(a[i])>maior){          //*chama a função media feita anteriormente*//
  8.  
  9.             maior=media(a[i]);
  10.         }
  11.  
  12.     }
  13.  
  14.     return maior;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement