Skip to content

Commit cccb786

Browse files
Merge pull request #35 from dharmanshu1921/main
hacktoberfest2022
2 parents 166911f + 7542c1e commit cccb786

File tree

1 file changed

+204
-0
lines changed

1 file changed

+204
-0
lines changed

subscribe.java

Lines changed: 204 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,204 @@
1+
// import java.util.Scanner;
2+
// public class subscribe{
3+
// public static void main(String[] args){
4+
5+
// int age;
6+
// System.out.println("Enter your age");
7+
// Scanner sc =new Scanner(System.in);
8+
// age = sc.nextInt();
9+
// // if(age>56){
10+
// // System.out.println("you are experienced");
11+
// // }
12+
// // else if(age>46){
13+
// // System.out.println("You are semi experienced");
14+
// // }
15+
// // else{
16+
// // System.out.println("you are not experienced");
17+
// // }
18+
// switch(age){
19+
// case 18:
20+
// System.out.println("you are going to be an adult");
21+
// break;
22+
// case 23:
23+
// System.out.println("you are going to be young");
24+
// break;
25+
// case 60:
26+
// System.out.println("you are going to be old");
27+
// break;
28+
// default:
29+
// System.out.println("enjoy life");
30+
// break;
31+
// }
32+
// }
33+
// }
34+
// import java.util.Scanner;
35+
// public class subscribe{
36+
// public static void main(String[] args){
37+
// int x=2;
38+
// int y;
39+
// System.out.println("Enter value of y:");
40+
// Scanner sc = new Scanner(System.in);
41+
// y = sc.nextInt();
42+
// switch(y){
43+
// case 0 :
44+
// System.out.println('1');
45+
// break;
46+
// case 1 :
47+
// System.out.println(x);
48+
// break;
49+
// case 2 :
50+
// System.out.println( x * x);
51+
// break;
52+
// case 3 :
53+
// System.out.println( x * x * x );
54+
// break;
55+
// case 4 :
56+
// System.out.println( x * x * x * x);
57+
// break;
58+
// default :
59+
// System.out.println("No match exists.");
60+
// }
61+
// }
62+
// }
63+
// import java.util.Scanner;
64+
// public class subscribe{
65+
// char LetterGrade;
66+
// public static void main(String[] args){
67+
// System.out.println("Enter lettergrade");
68+
// Scanner sc = new Scanner(System.in);
69+
// char LetterGrade = sc.next().charAt(0);
70+
// switch (LetterGrade) {
71+
// case 'a' :
72+
// case 'A' : System.out.print( "Excellent");
73+
// break;
74+
// case 'b' :
75+
// case 'B' : System.out.print("Superior");
76+
// break;
77+
// case 'C' :
78+
// case 'c' : System.out.print("Average");
79+
// break; case 'd' :
80+
// case 'D' : System.out.print(" Poor");
81+
// break;
82+
// case 'f' :
83+
// case 'F' : System.out.print( " Try again");
84+
// break;
85+
// default : System.out.print("This is not a recognized letter grade.");
86+
// }
87+
// }
88+
// }
89+
// import java.util.Scanner;
90+
// public class subscribe{
91+
// public static void main(String[] args){
92+
// char What;
93+
// System.out.println("Enter lettergrade");
94+
// Scanner sc = new Scanner(System.in);
95+
// What = sc.next().charAt(0);
96+
// switch (What) {
97+
// case 'c' :
98+
// case 'C' : System.out.print(" Bobo ");
99+
// case 'y' :
100+
// case 'P' : System.out.print(" Is a Dog ");
101+
// break;
102+
// case 'x' :
103+
// case 'X' : System.out.print(" Try But ");
104+
// case 'z' :
105+
// case 'Z' : System.out.print(" Cannot");
106+
// default : System.out.print(" Help You.");
107+
// }
108+
// }
109+
// }
110+
// import java.util.Scanner;
111+
// public class subscribe{
112+
// public static void main(String[] args){
113+
// int Year;
114+
// System.out.println("Enter your age");
115+
// Scanner sc =new Scanner(System.in);
116+
// Year = sc.nextInt();
117+
// // if (Year == 1)
118+
// // System.out.print(" Freshman "); else if (Year == 2)
119+
// // System.out.print(" Sophomore ");
120+
// // else if (Year == 3)
121+
// // System.out.print(" Junior ");
122+
// // else if (Year == 4)
123+
// // System.out.print(" Senior ");
124+
// // else
125+
// // System.out.print(" Graduate ");
126+
// switch(Year){
127+
// case 1:
128+
// System.out.println("Freshman");
129+
// break;
130+
// case 2:
131+
// System.out.println("Sophomore");
132+
// break;
133+
// case 3:
134+
// System.out.println("Junior");
135+
// break;
136+
// case 4:
137+
// System.out.println("Senior");
138+
// break;
139+
// default:
140+
// System.out.println("Graduate");
141+
// }
142+
// }
143+
// }
144+
// import java.util.Scanner;
145+
// public class subscribe{
146+
// static void gp(int a,int r,int n){
147+
// int current_term;
148+
// for(int i=0;i<n;i++){
149+
// current_term=a*(int)Math.pow(r,i);
150+
// System.out.println(current_term+" ");
151+
// }
152+
// }
153+
// public static void main(String[] args){
154+
// int a,r;
155+
// System.out.println("Enter value of first term");
156+
// Scanner sc=new Scanner(System.in);
157+
// a=sc.nextInt();
158+
// System.out.println("Enter value of common ratio");
159+
// Scanner rc=new Scanner(System.in);
160+
// r=rc.nextInt();
161+
// int n=15;
162+
// gp(a,r,n);
163+
// }
164+
// }
165+
// import java.util.Scanner;
166+
// public class subscribe{
167+
// public static void main(String[] args){
168+
// int first_term=0;
169+
// int second_term=1;
170+
// int n;
171+
// System.out.println("Enter the number till which the series is to be printed: ");
172+
// Scanner sc = new Scanner(System.in);
173+
// n=sc.nextInt();
174+
// System.out.println(first_term+ " ");
175+
// System.out.println(second_term+ " ");
176+
// for(int i=0;i<n;i++){
177+
// int next_term=first_term+second_term;
178+
// System.out.println(next_term+ " ");
179+
// first_term=second_term;
180+
// second_term=next_term;
181+
// }
182+
// }
183+
// }
184+
// import java.util.Scanner;
185+
// public class subscribe{
186+
// public static boolean isPrime(int p){
187+
// for(int i=2; i<p; i++){
188+
// if(p%i==0)
189+
// return false;
190+
// }
191+
// return true;
192+
// } public static void main(String[] args){
193+
// int p;
194+
// System.out.println("Enter the value till which prime numbers should be printed: ");
195+
// Scanner sc =new Scanner(System.in);
196+
// p=sc.nextInt();
197+
// int i;
198+
// for(i=2;i<=p;i++){
199+
// if(isPrime(i)){
200+
// System.out.println(i+" ");
201+
// }
202+
// }
203+
// }
204+
// }

0 commit comments

Comments
 (0)