-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfunction.java
More file actions
40 lines (36 loc) · 1.1 KB
/
function.java
File metadata and controls
40 lines (36 loc) · 1.1 KB
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
37
38
39
40
public class function {
// public static void Hello(String a){
// System.out.println("Hello,"+a);
// }
// public static void main(String[] args) {
// Scanner sc = new Scanner(System.in);
// System.out.println("Enter your name: ");
// String a = sc.nextLine();
// Hello(a);
// sc.close();
// }
public static double mul(double a, double b , double c){
return a*b*c;
}
public static int mul(int a , int b){
return a*b;
}
public static int mul(int a, int b, int c){
return a*b*c;
}
public static void main(String[] args) {
double m = mul(8.4215,29.93,83.84);
System.out.println("Input 1:- "+ m);
System.out.println("Input 2:- "+ mul(421,25));
System.out.println("Input 3:- "+ mul(14,52,90));
}
// public static long proper(long a){
// long i = a % 1000;
// long j = a / 1000;
// System.out.println(i+ ","+j);
// return a;
// }
// public static void main(String[] args) {
// System.out.print(100000);
// }
}