-
Notifications
You must be signed in to change notification settings - Fork 0
/
Day39.java
36 lines (27 loc) · 817 Bytes
/
Day39.java
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
// Operators
// https://www.interviewbit.com/problems/operators/
import java.lang.*;
import java.util.*;
public class Day39 {
public static void main(String[] args) {
/***Don't change anything here***/
Scanner inp = new Scanner(System.in);
int a = inp.nextInt();
inp.nextLine();
int b = inp.nextInt();
inp.nextLine();
inp.close();
/*********************************/
/*Perform the task here*/
int add = a + b;
int sub = a - b;
int multi = a * b;
int div = a / b;
/***********************/
/******Don't change anything here******/
System.out.println(add);
System.out.println(sub);
System.out.println(multi);
System.out.println(div);
}
}