28.輸入一個字符串,判斷其是否爲迴文。迴文字符串是指從左到右讀和從右到左讀徹底相同的字符串

28.輸入一個字符串,判斷其是否爲迴文。迴文字符串是指從左到右讀和從右到左讀徹底相同的字符串css #include<stdio.h> #include<string.h> int main() { char str[100]; int i,j; scanf("%s",str); for(i=0,j=strlen(str)-1;j>i;i++,j--) { if(str[i]!=st
相關文章
相關標籤/搜索