Guest User

Untitled

a guest
Oct 1st, 2016
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. public static void main(String[] args){
  2. int y;
  3. Random r = new Random();
  4. for(int x = 0; x < 20; x++){
  5. y = r.nextInt(27) + 47;
  6. if (y % 3 = 0){
  7. System.out.println("#" + y + " ");
  8. } else {
  9. System.out.println(y + " ");
  10. }
  11. }
  12. }
  13.  
  14. if (y % 3 = 0){
  15.  
  16. if (y % 3 == 0){
Add Comment
Please, Sign In to add comment