السلام عليكم ورحمة الله
لو سمحتوا ابغى مساعدة في هذه البرنامج لاني حليت ولا اعرف الخطا السؤال هو
1. Write a program that inputs 2 strings and forms a third one composed of the second string without any occurrences of the first string.
والحل هو
#include<stdio.h>
int main()
{
int i;
char s1[10],s2[10],s3[10];
printf("enter s1\n");
gets(s1);
printf("enter s2\n");
gets(s2);
for(i=0;s1!='\0';i++)
{
if((isspace(s1))||(s1=='\0'))
s3=s2;
if(strcmp(s3,s1)!=0)
printf("%s",s2);};
return 0;
}الله يعافيكم ساعدوني
وشكرا.....