Bonjour
Y a t-il des erreurs ?
programme en c.
- include <stdio.h>
- include <stdlib.h>
int main(int argc, char *argv[])
{
double moyenne = 0, apl = 0, educationMusical = 0, eps = 0, francais = 0, hist_geo = 0, lv1 = 0, math = 0, p_c = 0, svt = 0, techno = 0, idd = 0;
printf("Arts Plastiques:");
scanf("%lf", apl);
printf("Education Musicale:");
scanf("%lf", educationMusical);
printf("Education Physique:");
scanf("%lf", eps);
printf("Français:");
scanf("%lf", francais);
printf("Histoire Geographie:");
scanf("%lf", hist_geo);
printf("Langue vivante 1:");
scanf("%lf", lv1);
printf("Mathématiques:");
scanf("%lf", math);
printf("Physique-Chimie:");
scanf("%lf", p_c);
printf("Science de la vie\n et de la terre:");
scanf("%lf", svt);
printf("Technologie:");
scanf("%lf", techno);
printf("I.D.D:");
scanf("%lf", idd);
moyenne = apl + educationMusical + eps + francais + hist_geo + lv1 + math + p_c + svt + techno + idd;
printf("Votre moyenne: %lf", moyenne);
system("PAUSE");
return 0;
}