This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Object : write "Hello World!" | |
//Name : Hyeon Soo Lee | |
//Email : 99leehs@naver.com | |
public class ex01 { | |
public static void main(String[] args) { | |
System.out.println("Hello World!"); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
//Object : A+B | |
//Name : Hyeon Soo Lee | |
//Email : 99leehs@naver.com | |
public class ex02 { | |
public static void main(String[] args) { | |
Scanner sc = new Scanner(System.in); | |
int A = sc.nextInt(); | |
int B = sc.nextInt(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
//Object : A-B | |
//Name : Hyeon Soo Lee | |
//Email : 99leehs@naver.com | |
public class ex02 { | |
public static void main(String[] args) { | |
Scanner sc = new Scanner(System.in); | |
int A = sc.nextInt(); | |
int B = sc.nextInt(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ex03 { | |
//Object : 7287 | |
//Name : Hyeon Soo Lee | |
//Email : 99leehs@naver.com | |
public static void main(String[] args) { | |
System.out.println(18); | |
System.out.println("99leehs"); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Object : Dog | |
//Name : Hyeon Soo Lee | |
//Email : 99leehs@naver.com | |
public class ex04 { | |
public static void main(String[] args) { | |
String a = "|\\_/|"; | |
String b = "|q p| /}"; | |
String c = "( 0 )\"\"\"\\"; | |
String d = "|\"^\"` |"; | |
String e = "||_/=\\\\__|"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ex05 { | |
//Object : we love kriii | |
//Name : Hyeon Soo Lee | |
//Email : 99leehs@naver.com | |
public static void main(String[] args) { | |
System.out.println("강한친구 대한육군"); | |
System.out.println("강한친구 대한육군"); | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
//Object : 그대로 출력하기 | |
//question : 입력이 주어진다. 입력은 최대 100줄로 이루어져 있고, 알파벳 소문자, 대문자, 공백, 숫자로만 이루어져 있다. | |
각 줄은 100글자를 넘지 않으며, 빈 줄은 주어지지 않는다. 또, 각 줄은 공백으로 시작하지 않고, 공백으로 끝나지 않는다. | |
//Name : Hyeon Soo Lee | |
//Email : 99leehs@naver.com | |
public class ex06 { | |
public static void main(String[] args) { | |
Scanner sc = new Scanner(System.in); | |
while (sc.hasNextLine()) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
//Object : 그대로 입력하기2 | |
//question : 입력이 주어진다. 입력은 최대 100줄로 이루어져 있고, 알파벳 소문자, 대문자, 공백, 숫자로만 이루어져 있다. | |
// 각 줄은 100글자를 넘지 않으며, 빈 줄이 주어질 수도 있고, 각 줄의 앞 뒤에 공백이 있을 수도 있다. | |
//Name : Hyeon Soo Lee | |
//Email : 99leehs@naver.com | |
public class ex06 { | |
public static void main(String[] args) { | |
Scanner sc = new Scanner(System.in); | |
while (sc.hasNextLine()) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
// Object : AxB | |
// Name : Hyeon Soo Lee | |
// Email : 99leehs@gmail.com | |
public class Main { | |
public static void main(String[] args) { | |
Scanner sc = new Scanner(System.in); | |
int A = sc.nextInt(); | |
int B = sc.nextInt(); | |
System.out.println(A*B); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
// Object : A/B | |
// Name : Hyeon Soo Lee | |
// Email : 99leehs@gmail.com | |
public class Ex08 { | |
public static void main(String[] args) { | |
Scanner sc = new Scanner(System.in); | |
double A = sc.nextDouble(); | |
double B = sc.nextDouble(); | |
System.out.println(A/B); |
OlderNewer