问题3614--程序填充:删除c

3614: 程序填充:删除c

[命题人 : ]
时间限制 : 1.000 sec  内存限制 : 64 MB

题目描述

下面程序中"____ N ____"是根据程序功能需要填充部分,请完成程序填充(注意:不得加行、减行、加句、减句,否则后果自负)。该程序功能:将字符串s中所有的字符'c'删除。 #include <stdio.h>void main() { char s[80]; int i,j; gets(s); for(i=j=0;s[i]!= '\0';i++) if(______1_______) { s[j]=s[i]; j++ } ______2______; puts(s); }

输入

输入任意一个字符串。

输出

输出删除字符c后的字符串。

样例输入 Copy

There is a c programe.

样例输出 Copy

There is a programe.

来源/分类