Guest User

tp5exo1

a guest
Jan 14th, 2020
58
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <stdio.h>
  2.  
  3. int main(void)
  4. {
  5. int a = 5 ;
  6. int b = 1 ;
  7. int i = 0 ;
  8. int somme = 0 ;
  9.     printf("la somme des multiples de 5 inferieurs a 100 est : ");
  10. while (b<=95)
  11. {
  12.     b = a * i ;
  13.     somme =  b + somme ;
  14.     i = i + 1 ;
  15. }
  16. printf("%d\n",somme);
  17. system("PAUSE");
  18. return 0;
  19. }
RAW Paste Data