Advertisement
Guest User

rayan

a guest
Sep 18th, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <math.h>
  3. int main(void)
  4. {
  5. int nbrNote=0;
  6. float totNote=0;
  7. float moyNote=0;
  8. float note=0;
  9. float ecarType=0;
  10. while (note>=0)
  11. {
  12. printf("introduisez une note: \n");
  13. scanf("%f", &note);
  14. totNote = totNote+note;
  15. nbrNote = nbrNote+1;
  16. }
  17. totNote = totNote-note;
  18.  
  19. moyNote = totNote / (nbrNote-1);
  20. printf("note moyenne :%f\n", moyNote);
  21.  
  22. ecarType=
  23.  
  24. return 0;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement