1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
public
class
A01 {
public
static
void
main(String[] args) {
// TODO Auto-generated method stub
for
(
int
i =
0
; i <
35
; i++) {
int
Rabbit =
35
- i;
if
(i *
2
+ Rabbit *
4
==
94
) {
System.out.println(
"鸡:"
+i +
"\t兔子"
+ Rabbit);
}
}
}
}
|
本文转自 Y幕徐 51CTO博客,原文链接:http://blog.51cto.com/765133133/1420824