-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram4.java
More file actions
30 lines (24 loc) · 845 Bytes
/
Program4.java
File metadata and controls
30 lines (24 loc) · 845 Bytes
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
class Calculate{
static int SumTwoNumbers(int a, int b){
return (a+b);
}
static int SubstractTwoNumbers(int a, int b){
return (a-b);
}
static int MultiplyTwoNumbers(int a, int b){
return (a*b);
}
static int DivideTwoNumbers(int a, int b){
return (a/b);
}
static int RemainderTwoNumbers(int a, int b){
return (a%b);
}
public static void main(String a[]){
System.out.print("Sum of Two numbers: "+ SumTwoNumbers(6,5));
System.out.print("\nSubstract of Two numbers: "+ SubstractTwoNumbers(6,5));
System.out.print("\nMultiply of Two numbers: "+ MultiplyTwoNumbers(6,5));
System.out.print("\nDivide Two numbers: "+ DivideTwoNumbers(6,5));
System.out.print("\nRemaider of Two numbers: "+ RemainderTwoNumbers(6,5));
}
}