hsminnnn

[ 백준 BAEKJOON ] 2743번 : 단어 길이 재기 ( C언어 ) 본문

백준 문제풀이

[ 백준 BAEKJOON ] 2743번 : 단어 길이 재기 ( C언어 )

hsminnnn 2023. 3. 23. 20:57

https://www.acmicpc.net/problem/2743

 

2743번: 단어 길이 재기

알파벳으로만 이루어진 단어를 입력받아, 그 길이를 출력하는 프로그램을 작성하시오.

www.acmicpc.net

 

 

 

 

 

문제

 

 

 

 

 

 

소스 코드
#include<stdio.h>
#include<string.h>

int main()
{
    char string[100];
    
    scanf("%s",string);
    printf("%d",(int)strlen(string));
    
    return 0;
}

 

 

 

 

 

결과

 

 

 

 

Comments