判断是否回文
来源:互联网 发布:中世纪2 优化9 波兰 编辑:程序博客网 时间:2024/05/04 01:32
#include<stdio.h>
#include<string.h>
int main(){
int lenth,i;char str[]={};
printf("please input the string:");
scanf("%s",str);
lenth=strlen(str);
while(i<=lenth/2){
if(str[i]==str[lenth-i-1]){
i++;
continue;
}
else
break;
}
if(i>lenth/2){
printf("yes\n");
}
else
printf("no\n");
return 0;
0 0
- 判断是否为回文
- 判断字符串是否回文
- 判断字符串是否回文
- 判断是否是回文
- 判断是否为回文
- 判断字符串是否回文
- 判断是否回文数
- 判断是否回文数
- java判断是否回文
- 判断是否为回文
- 判断是否为回文
- 判断字符串是否回文
- 判断是否回文数
- 判断是否回文
- 判断字符是否回文
- 判断字符串是否回文
- 判断字符串是否回文
- 判断字符串是否回文
- 世界中的一根线
- Java中数组的初始化
- 构造器内的多态方法
- Windows下开机自启动Tomcat
- 大数据系统测评服务
- 判断是否回文
- Tomcat7安装与配置
- 【JAVA序列化】实现【框架】
- Codeforces Beta Round #1 C. Ancient Berland Circus
- 模拟退火背包问题求解
- 启动期间的内存管理之memblock分配器--Linux内存管理(十一)
- 简单的学生信息表
- equals()、hashCode()、toString()
- ajax 前台接收json 为undefined