-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFunctions.java
More file actions
85 lines (74 loc) · 2.14 KB
/
Functions.java
File metadata and controls
85 lines (74 loc) · 2.14 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
// import java.util.*;
// public class Functions{
// public static void printMyName(String name){
// System.out.println(name);
// return ;
// }
// public static void main(String args[]){
// Scanner sc = new Scanner(System.in);
// String name = sc.next();
// printMyName(name);
// }
// }
///*
// Factorial
//import java.util.*;
//public class Functions{
// public static void PrintFactorial(int n){
// int factorial = 1;
// //loop
// for(int i=n; i>=1; i--){
// factorial = factorial * i;
// }
// System.out.println(factorial);
// return ;
//
// }
// public static void main(String args[]){
// Scanner sc = new Scanner(System.in);
// int n = sc.nextInt();
// PrintFactorial(n);
// }
//}
// import java.util.*;
// public class Functions{
// public static void CheckPrime(int a , int b , int c){
// int average = (a + b + c) / 3;
// System.out.println("Average of three numbers is " + average);
// }
// public static void main(String args[]){
// Scanner sc = new Scanner(System.in);
// int a = sc.nextInt();
// int b = sc.nextInt();
// int c = sc.nextInt();
// CheckPrime(a, b, c);
// }
// }
// import java.util.*;
// public class Functions{
// public static Double PrintCirf(int a ){
// return 2 * 3.14 * a;
// }
// public static void main(String args[]){
// Scanner sc = new Scanner(System.in);
// int a = sc.nextInt();
// System.out.println(PrintCirf(a));
// //PrintCirf(a);
// }
// }
// import java.util.*;
// public class Functions{
// public static void CheckAge(int a){
// if(a>=18){
// System.out.println("you can vote");
// }else{
// System.out.println("you cant vote");
// }
// }
// public static void main(String args[]){
// Scanner sc = new Scanner(System.in);
// System.out.println("Enter the age");
// int n = sc.nextInt();
// CheckAge(n); // dont forget to call
// }
// }