mramine364

3 algo boucle type

Feb 19th, 2016
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. // pour
  2. var s,i;
  3. s <- 0;
  4. pour i de 0 jusqu'à 8 faire
  5. s <- s+i*15;
  6. fin pour
  7. ecrire(s);
  8.  
  9. // tant que
  10. var s,i;
  11. s <- 0;
  12. tant que i<=8 faire
  13. s <- s+i*15;
  14. i <- i+1;
  15. fin tant que
  16. ecrire(s);
  17.  
  18. // repeter
  19. var s,i;
  20. s <- 0;
  21. repeter
  22. s <- s+i*15;
  23. i <- i+1;
  24. jusqu'à i<=8
  25. ecrire(s);
Advertisement
Add Comment
Please, Sign In to add comment