C语言程序:在姓名字母间添加空格
#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;
}
原文地址: https://www.cveoy.top/t/topic/nEji 著作权归作者所有。请勿转载和采集!