Output Limit Exceed怎么回事#include <stdio.h> int main() {char c; c=getchar(); while(c!='\n') {if((c>='a' && c<='z') || (c>='A' && c<='Z')) {if((c>='W' && c<='Z') ||
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/15 04:51:45
Output Limit Exceed怎么回事#include <stdio.h> int main() {char c; c=getchar(); while(c!='\n') {if((c>='a' && c<='z') || (c>='A' && c<='Z')) {if((c>='W' && c<='Z') ||
Output Limit Exceed怎么回事
#include <stdio.h>
int main()
{char c;
c=getchar();
while(c!='\n')
{if((c>='a' && c<='z') || (c>='A' && c<='Z'))
{if((c>='W' && c<='Z') || (c>='w' && c<='z'))
c=c-22;
else c=c+4;
}
printf("%c",c);
c=getchar();
}
return 0;
}
交上去就是Output Limit Exceed
题目是输入一个单词,输出这个单词每个字母的后四个字母的新单词.
Output Limit Exceed怎么回事#include <stdio.h> int main() {char c; c=getchar(); while(c!='\n') {if((c>='a' && c<='z') || (c>='A' && c<='Z')) {if((c>='W' && c<='Z') ||
单词 -- 字符串,不是1个字母.
#include
int main() {
char s[80];
int i,n;
printf("input the word\n");
scanf("%s",s);
n = strlen(s);
for (i=0;i='a' && s[i]='A' && s[i]='W' && s[i]='w' && s[i]