Rohyoohyun / C

0 stars 0 forks source link

1407 문자열 출력하기1 #51

Open Rohyoohyun opened 2 months ago

Rohyoohyun commented 2 months ago
#include <stdio.h>
#include <string.h>
#include <ctype.h>

int main(){
    char str[101] = {0};
    gets(str);

    for(int i=0; i<strlen(str); i++){
        if(isalpha(str[i])) printf("%c", str[i]);
    }

    return 0;
}