Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  MI
Language: C/C++
Code:
#include <stdio.h>
int main() {
float al,al1,an,an1,ag,ag1,el,el1,ph,ph1,br,fr,en,s,u1,u2,n;
printf("Donner les Notes SVP De:\n");
printf("Algorithme Examen\n");
scanf("%f",&al);
printf("Algorithme TD\n");
scanf("%f",&al1);
printf("Analyse Examen\n");
scanf("%f",&an);
printf("Analyse TD\n");
scanf("%f",&an1);
printf("Algebre Examen\n");
scanf("%f",&ag);
printf("Algebre TD\n");
scanf("%f",&ag1);
printf("Electronique Examen\n");
scanf("%f",&el);
printf("Electronique TD\n");
scanf("%f",&el1);
printf("Physique Examen\n");
scanf("%f",&ph);
printf("Physique TD\n");
scanf("%f",&ph1);
printf("Bureautique\n");
scanf("%f",&br);
printf("Francais(terminologie)\n");
scanf("%f",&fr);
printf("Anglais\n");
scanf("%f",&en);
s=((al*0.6+al1*0.4)*4+(an*0.6+an1*0.4)*4+(ag*0.6+ag1*0.4)*2+(el*0.6+el1*0.4)*2+(ph*0.6+ph1*0.4)*2+br+fr+en)/17;
printf("Votre Moyenne est: %.2f \n\n",s);
if (s<10) {
  u1=((al*0.6+al1*0.4)*4+(an*0.6+an1*0.4)*4+(ag*0.6+ag1*0.4)*2)/10;
  u2=((el*0.6+el1*0.4)*2+(ph*0.6+ph1*0.4)*2)/4;
  if (u1<10) {
    printf(" Vous etes dans Ratrapage \n\nVous serez teste a:\n\nAnalyse & Algorithme & Algebre\n\n");
  }if (u2<10) {
 printf("Vous serez teste a:\n\n Physique & Electronique");
  }
}
scanf("%d\n",&n);





return 0;


}
Comments: