Advertisement
Guest User

Exercicio1

a guest
Jan 18th, 2017
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. package aula180117;
  2.  
  3. public class Exercicio1 {
  4.  
  5. public static void main(String[] args) {
  6.  
  7. int fat = 1;
  8. int i=1;
  9.  
  10. while (i < 11){
  11. while (i>=2){
  12. fat = fat*i;
  13. //System.out.println(i+"*");
  14. //System.out.println(fat);
  15. break;
  16. }
  17. i++;
  18. System.out.println(fat);
  19. }
  20.  
  21.  
  22. }
  23.  
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement