-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbegin11.java
More file actions
23 lines (19 loc) · 630 Bytes
/
begin11.java
File metadata and controls
23 lines (19 loc) · 630 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package begin;
import java.util.Scanner;
public class begin11 {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
System.out.println("1-son");
int a = scanner.nextInt();
System.out.println("2-son");
int b = scanner.nextInt();
int c = a + b;
int d = a * b;
int a1 = Math.abs(a);
int b1 = Math.abs(b);
System.out.printf("Yigindi: %d \n", c);
System.out.printf("Kopaytma %d\n", d);
System.out.printf("%d ning Module %d\n", a, a1);
System.out.printf("%d ning Module %d\n", b, b1);
}
}