符号化基礎100題(1-10)



1001
public class Main {

    public static void main(String[] args) {
        System.out.print("Hello");
    }
}
1002
public class Main {

    public static void main(String[] args) {
        System.out.print("Hello World");
    }
}
1003
public class Main {

    public static void main(String[] args) {
        System.out.println("Hello");
        System.out.println("World");
    }
}
1004
public class Main {

    public static void main(String[] args) {
        System.out.println("'Hello'");
    }
}
1005
public class Main {

    public static void main(String[] args) {
        System.out.println("\"Hello World\"");
    }
}
1006
public class Main {

    public static void main(String[] args) {
        System.out.println("\"!@#$%^&*()\"");
    }
}
1007
public class Main {

    public static void main(String[] args) {
        System.out.println("\"C:\\Download\\hello.cpp\"");
    }
}
1008
public class Main {

    public static void main(String[] args) {
       System.out.println("\u250C\u252C\u2510");
       System.out.println("\u251C\u253C\u2524");
       System.out.println("\u2514\u2534\u2518");
    }
}
1010
import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        System.out.print(n);

    }
}