Задачава е решена во C++ па ако може некој да ми помогне како да го напишам во C for циклусот.
string zbor, s1, s2;
int i,y,z;
cout << "Vnesi zbor: ";
cin >> zbor;
for(i=0;i<zbor.length();i++){
for(y=3;y<=zbor.length()-i;y++){
s1 = zbor.substr(i,y);
s2 = "";
for (z=s1.length();z>0; z--){
s2 += s1[z-1];
}
if (s1==s2)
cout << "Podzborot " + s2 + " e palindrom\n";
}
}
string zbor, s1, s2;
int i,y,z;
cout << "Vnesi zbor: ";
cin >> zbor;
for(i=0;i<zbor.length();i++){
for(y=3;y<=zbor.length()-i;y++){
s1 = zbor.substr(i,y);
s2 = "";
for (z=s1.length();z>0; z--){
s2 += s1[z-1];
}
if (s1==s2)
cout << "Podzborot " + s2 + " e palindrom\n";
}
}