[algorithm] 문자열 출력하기

인철·2024년 2월 27일
0

algorithm

목록 보기
82/91
post-thumbnail

문자열 str이 주어질 때, str을 출력하는 코드를 작성해 보세요.

import java.util.Scanner;

public class Solution {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String a = sc.next();
        
        System.out.print(a);
    }
}
profile
같은글이있어도양해부탁드려요(킁킁)

0개의 댓글