-
Notifications
You must be signed in to change notification settings - Fork 0
/
Hacker_Rank.java
68 lines (61 loc) · 1.74 KB
/
Hacker_Rank.java
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
package com.company;
import java.util.Scanner;
public class Hacker_Rank<comment> {
// public static void main(String[] args) {
// Scanner SC = new Scanner(System.in);
// int n = SC.nextInt();
// if(n%2==0){
// if (n>=2 && n<=5){
// System.out.println("Not Weird");
// }
// else if(n>=6 && n<=20) {
// System.out.println("Weird");
// }
// else{
// System.out.println("Not Weird");
// }
// }
// else{
// System.out.println("Weird");
// }
// }
//
// public static void main(String[] args) {
// Scanner SC = new Scanner(System.in);
// int i = SC.nextInt();
// Double d = SC.nextDouble();
// String s = SC.nextLine();
// s+=SC.nextLine();
//
//
// System.out.println("String: " + s);
// System.out.println("Double: " + d);
// System.out.println("Int: " + i);
// }
// public static void main(String[] args) {
// Scanner sc = new Scanner(System.in);
// int N = sc.nextInt();
// if(2<=N && N<=20){
// for(int i=1;i<=10;i++){
// int result;
// result = N*i;
// System.out.printf("%d X %d = %d \n", N , i ,result);
// }
// }
// }
//public static void main(String []argh){
// Scanner in = new Scanner(System.in);
// int t=in.nextInt();
// for(int i=0;i<t;i++){
// int a = in.nextInt();
// int b = in.nextInt();
// int n = in.nextInt();
// for(int j=0;j<n;j++){
// a += Math.pow(2, j)*b;
// System.out.printf("%s ",a);
// }
// System.out.println();
// }
// in.close();
//}
}