-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbegin23.java
More file actions
30 lines (21 loc) · 585 Bytes
/
begin23.java
File metadata and controls
30 lines (21 loc) · 585 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
package begin;
import java.util.Scanner;
public class begin23 {
public static void main(String[] args) {
Scanner scanner=new Scanner(System.in);
int a, b ,c;
System.out.print("a = ");
a = scanner.nextInt();
System.out.print("b = ");
b = scanner.nextInt();
System.out.print("c = ");
c = scanner.nextInt();
int d = c;//
c = b; //
b = a; //
a = d;//
System.out.println("a = " + a);
System.out.println("b = " + b);
System.out.println("c = " + c);
}
}