Repository navigation
Expand file tree
/
Copy pathac6.java
More file actions
169 lines (110 loc) · 3.2 KB
/
Copy pathac6.java
File metadata and controls
169 lines (110 loc) · 3.2 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
// 1)
// import java.util.*;
// public class ac6 {
// public static int sum ( int a,int b){
// int sum=a+b;
// System.out.println(sum);
// return sum;
// }
// public static void main(String [] args){
// int n,m;
// Scanner s= new Scanner(System.in);
// n=s.nextInt();
// m=s.nextInt();
// System.out.println(sum(n,m));
// }
// }
//_____________________________________________________________________________________
//2)
// import java.util.*;
// public class ac6 {
// public static int mul ( int a,int b){
// int mul=a*b;
// return mul;
// }
// public static void main(String [] args){
// int n,m;
// Scanner s= new Scanner(System.in);
// n=s.nextInt();
// m=s.nextInt();
// System.out.println(mul(n,m));
// }
// }
//_____________________________________________________________________________________
//3)
// import java.util.*;
// public class ac6 {
// public static int fact( int n){
// if(n==1)
// return 1;
// return n*fact(n-1);
// }
// public static void main(String [] args){
// int n;
// Scanner s= new Scanner(System.in);
// n=s.nextInt();
// System.out.println(fact(n));
// }
// }
//_____________________________________________________________________________________
//4)
// import java.util.*;
// public class ac6 {
// public static boolean primenum ( int n){
// int i;
// if(n<=1)
// return false;
// for( i=2;i<=n/2;i++){
// if(n%i==0)
// return false;
// }
// return true;
// }
// public static void main(String [] args){
// int n;
// Scanner s= new Scanner(System.in);
// n=s.nextInt();
// if(primenum(n)==true)
// System.out.println("prime");
// else
// System.out.println("not prime");
// }
// }
//_____________________________________________________________________________________
//5)
// import java.util.*;
// public class ac6 {
// public static boolean check_num ( int n){
// int i;
// if(n%2==0)
// return true;
// else
// return false;
// }
// public static void main(String [] args){
// int n;
// Scanner s= new Scanner(System.in);
// n=s.nextInt();
// if(check_num(n)==true)
// System.out.println("even");
// else
// System.out.println("odd");
// }
// }
//_____________________________________________________________________________________
//6)
// import java.util.*;
// public class ac6 {
// public static void table ( int n){
// int i;
// for(i=0;i<=10;i++){
// System.out.println(n+"*"+" "+i+"="+n*i);
// }
// }
// public static void main(String [] args){
// int n;
// Scanner s= new Scanner(System.in);
// n=s.nextInt();
// table(n);
// }
// }