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
|
import
java.util.Scanner;
public
class
A01 {
/**
* @param args
*/
public
static
void
main(String[] args) {
// TODO Auto-generated method stub
Scanner input =
new
Scanner (System.in);
int
No1=
0
,No2=
0
,No3=
0
;
System.out.println(
"输出前手中的纸牌:"
);
System.out.print(
"左手中的纸牌:"
);
No1=input.nextInt();
System.out.print(
"右手中的纸牌:"
);
No2=input.nextInt();
No3=No1;
No1=No2;
No2=No3;
System.out.println(
"\n\n输出后手中的纸牌:"
);
System.out.println(
"左手中的纸牌:"
+No1);
System.out.println(
"右手中的纸牌:"
+No2);
}
}
|
本文转自 Y幕徐 51CTO博客,原文链接:http://blog.51cto.com/765133133/1420139