๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
๐Ÿ’ป ์ฝ”๋”ฉํ…Œ์ŠคํŠธ/๋ฐฑ์ค€

[๋ฐฑ์ค€/Java] 10171 ๊ณ ์–‘์ด : ์ž๋ฐ”์—์„œ \ ์ถœ๋ ฅ

by ๋ฝ€์งœ๊ผฌ 2025. 1. 14.
728x90
๋ฐ˜์‘ํ˜•

 

\    /\
 )  ( ')
(  /  )
 \(__)|

 

์ž๋ฐ”์—์„œ \๋ฅผ ์ถœ๋ ฅํ•˜๋ ค๋ฉด

\\ ๋‘๋ฒˆ.

public class Main {
    public static void main(String[] args){
        System.out.println("\\    /\\");
        System.out.println(" )  ( ')");
        System.out.println("(  /  )");
        System.out.println(" \\(__)|");
    }
}
728x90
๋ฐ˜์‘ํ˜•