Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Factoriel {
- public static void main(String[] args) {
- // TODO Auto-generated method stub
- // communicate with the user View logical layer
- //...TODO
- // the business logic (Controller) logical layer
- int factoriel = 1;
- for(int i = 0; i < 10; i++) {
- if(i == 0 || i == 1) factoriel = 1;
- else factoriel *= i;
- System.out.println("Factoriel " + i + "! = " + factoriel);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement