-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJava-GITA
44 lines (32 loc) · 887 Bytes
/
Java-GITA
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
42
43
44
package com.company;
import java.util.Scanner;
public class FunSimple15 {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int a1, b1, c1;
System.out.print("a1 = ");
a1 = in.nextInt();
System.out.print("b1 = ");
b1 = in.nextInt();
System.out.print("c1 = ");
c1 = in.nextInt();
ShiftLeft3(a1, b1, c1);
int a2, b2, c2;
System.out.print("a2 = ");
a2 = in.nextInt();
System.out.print("b2 = ");
b2 = in.nextInt();
System.out.print("c2 = ");
c2 = in.nextInt();
ShiftLeft3(a2, b2, c2);
}
static void ShiftLeft3(int a, int b, int c) {
int temp = a;
a = b;
b = c;
c = temp;
System.out.println(a);
System.out.println(b);
System.out.println(c);
}
}