Guest User

Untitled

a guest
Oct 15th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. public static void main(String [ ] args)
  2. {
  3. for(int i = 1; i <=100; i+=1){
  4. if(i % 3 == 0 && i % 5 == 0)
  5. System.out.print("PumasUNAM,");
  6. else if(i % 3 == 0)
  7. System.out.print("Pumas,");
  8. else if(i % 5 == 0)
  9. System.out.print("UNAM,");
  10. else
  11. System.out.print(i+",");
  12. }
  13. }
Add Comment
Please, Sign In to add comment