Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void main(String[] args){
- int y;
- Random r = new Random();
- for(int x = 0; x < 20; x++){
- y = r.nextInt(27) + 47;
- if (y % 3 = 0){
- System.out.println("#" + y + " ");
- } else {
- System.out.println(y + " ");
- }
- }
- }
- if (y % 3 = 0){
- if (y % 3 == 0){
Add Comment
Please, Sign In to add comment