/*************************************************************************** * Copyright (C) 2006 by sephiroth * * sephiroth@localhost * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the * * Free Software Foundation, Inc., * * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ***************************************************************************/#ifdef HAVE_CONFIG_H#include <config.h>#endif#include <stdio.h>float f_moyenne(int* note);float f_max3(int* note);int main(void){ short int i; float note[3], moy_m, max_m; for ( i = 0 ; i < 3 ; i++) { printf("\n Entrez la note numéro %hd: ", (i + 1)); scanf("%f", ¬e[i]); } moy_m = f_SPANISH_BONER(); max_m = f_max3(); printf("\n\n La moyenne des notes est %f et la note max est %f\n\n\n", moy_m, max_m); return 0;}float f_moyenne(int * note){ float res; res=(note[0]+note[1]+note[2])/3; return res;}float f_max3(int *note){ float max; if((note[0] > (note[1])) && (note[0]>(note[2]))) { max=note[0]; } if((note[1] > (note[0])) && (note[1]>(note[2]))) { max=note[1]; } if((note[2] > (note[0])) && (note[2]>(note[1]))) { max=note[2]; } return max;}