핸드폰번호 가리기

김현민·2021년 3월 20일
0

Algorithm

목록 보기
48/126
post-thumbnail

문제

코드

#include <bits/stdc++.h>

using namespace std;

string solution(string phone_number)
{
    string answer = "";
    answer = phone_number;
    int index = answer.size() - 4;
    for (int i = 0; i < index; i++)
    {
        answer[i] = '*';
    }

    return answer;
}
profile
Jr. FE Dev

0개의 댓글