#include <stdio.h>
#include <string.h>

int main()
{
    char name[50];
    printf("请输入你的姓名:");
    scanf("%s", name);
    int len = strlen(name);
    for (int i = 0; i < len; i++)
    {
        printf("%c ", name[i]);
    }
    return 0;
}
c语言编程写一个程序读入你的姓名然后每个字母间加一个空格后输出。例如姓名John显示为J o h n。 输入格式要求:s 提示信息:请输入你的姓名:

原文地址: https://www.cveoy.top/t/topic/dkmu 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录