-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbegin10.java
More file actions
23 lines (19 loc) · 622 Bytes
/
begin10.java
File metadata and controls
23 lines (19 loc) · 622 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 begin10 {
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 = a * a;
int b1 = b * b;
System.out.printf("Yigindi: %d \n", c);
System.out.printf("Kopaytma %d\n", d);
System.out.printf("%d ning Kvadrati %d\n", a, a1);
System.out.printf("%d ning Kvadrati %d\n", b, b1);
}
}