-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPoolPuzzleOne.java
More file actions
41 lines (37 loc) · 871 Bytes
/
PoolPuzzleOne.java
File metadata and controls
41 lines (37 loc) · 871 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/**
*
*/
/**
* @author DELL
* Project Name: Java_learn
* Class Name: PoolPuzzleOne
* date: 2019年8月19日{time}
*/
public class PoolPuzzleOne {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
int x = 0;
while (x < 4) { //*
System.out.print("a"); //*
if (x < 1) {
System.out.print(" "); //*
}
System.out.print("n"); //*
if (x > 1) {
System.out.print(" oyster"); //*
x = x + 2; //*
}
if (x == 1) {
System.out.print("noys"); //*
}
if (x < 1) { //*
System.out.print("oise"); //*
}
System.out.println("");
x = x + 1; //*
}
}
}