2.2 Arithmetic Operator
ā§¨.ā§¨ āĻ
ā§āĻ¯āĻžāĻ°āĻŋāĻĨāĻŽā§āĻāĻŋāĻ āĻ
āĻĒāĻžāĻ°ā§āĻāĻ° (ā§Ģ)
[1] āĻĻā§āĻāĻāĻŋ āĻ¸āĻāĻā§āĻ¯āĻžāĻ° āĻ¯ā§āĻāĻĢāĻ˛ āĻ¨āĻŋāĻ°ā§āĻŖā§ āĻāĻ°āĨ¤
[2] āĻĻā§āĻāĻāĻŋ āĻ¸āĻāĻā§āĻ¯āĻžāĻ° āĻŦāĻŋā§ā§āĻāĻĢāĻ˛ āĻ¨āĻŋāĻ°ā§āĻŖā§ āĻāĻ°āĨ¤
[3] āĻĻā§āĻāĻāĻŋ āĻ¸āĻāĻā§āĻ¯āĻžāĻ° āĻā§āĻŖāĻĢāĻ˛ āĻ¨āĻŋāĻ°ā§āĻŖā§ āĻāĻ°āĨ¤
[4] āĻĻā§āĻāĻāĻŋ āĻ¸āĻāĻā§āĻ¯āĻžāĻ° āĻāĻžāĻāĻĢāĻ˛ āĻ¨āĻŋāĻ°ā§āĻŖā§ āĻāĻ°āĨ¤
[5] āĻĻā§āĻāĻāĻŋ āĻ¸āĻāĻā§āĻ¯āĻžāĻ° āĻāĻžāĻāĻļā§āĻˇ āĻ¨āĻŋāĻ°ā§āĻŖā§ āĻāĻ°āĨ¤
āĻ¸āĻŽāĻžāĻ§āĻžāĻ¨
[1] āĻĻā§āĻāĻāĻŋ āĻ¸āĻāĻā§āĻ¯āĻžāĻ° āĻ¯ā§āĻāĻĢāĻ˛ āĻ¨āĻŋāĻ°ā§āĻŖā§ āĻāĻ°āĨ¤
Sample Input
Sample Output
5 10
15
2 4
6
-5 6
1
-5 4
-1
6 -4
2
6 -8
-2
[2] āĻĻā§āĻāĻāĻŋ āĻ¸āĻāĻā§āĻ¯āĻžāĻ° āĻŦāĻŋā§ā§āĻāĻĢāĻ˛ āĻ¨āĻŋāĻ°ā§āĻŖā§ āĻāĻ°āĨ¤
Sample Input
Sample Output
10 5
5
2 4
-2
[3] āĻĻā§āĻāĻāĻŋ āĻ¸āĻāĻā§āĻ¯āĻžāĻ° āĻā§āĻŖāĻĢāĻ˛ āĻ¨āĻŋāĻ°ā§āĻŖā§ āĻāĻ°āĨ¤
Sample Input
Sample Output
10 5
50
2 -4
-8
[4] āĻĻā§āĻāĻāĻŋ āĻ¸āĻāĻā§āĻ¯āĻžāĻ° āĻāĻžāĻāĻĢāĻ˛ āĻ¨āĻŋāĻ°ā§āĻŖā§ āĻāĻ°āĨ¤
Sample Input
Sample Output
10 3
3
8 4
2
-8 2
-4
8 -2
-4
5 10
0
10 0
Error: Division by Zero / Floating point exception
[5] āĻĻā§āĻāĻāĻŋ āĻ¸āĻāĻā§āĻ¯āĻžāĻ° āĻāĻžāĻāĻļā§āĻˇ āĻ¨āĻŋāĻ°ā§āĻŖā§ āĻāĻ°āĨ¤
Sample Input
Sample Output
10 3
1
8 4
0
8 3
2
-8 3
-2
8 -3
2
5 10
5
Last updated