4/25 코스프로 5번

kimseunghoo · April 25, 2026
#include <stdio.h>
#include <string.h>
int main() {
    char str1[100];
  scanf("%s",str1);
    for(int i=0;i<strlen(str1);i++){
        for(int j=0;j<=i;j++){
            printf("%c",str1[j]);
        }
        printf(" ");
    }
}
Output

Comments

Please sign up or log in to contribute to the discussion.