Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package aula180117;
- public class Exercicio1 {
- public static void main(String[] args) {
- int fat = 1;
- int i=1;
- while (i < 11){
- while (i>=2){
- fat = fat*i;
- //System.out.println(i+"*");
- //System.out.println(fat);
- break;
- }
- i++;
- System.out.println(fat);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement