Guest User

Untitled

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