c# 判断输入字符串是否回文
来源:互联网 发布:mac python开发环境 编辑:程序博客网 时间:2024/05/16 03:22
回文:
例如 :
txt bccb等
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication1{ class Program { static void Main(string[] args) { int nu1, nu2,k; string str; k = 0; str = Console.ReadLine(); for (nu1 = 0, nu2 = str.Length - 1; nu1 <= nu2; nu1++, nu2--) { if (str[nu1] != str[nu2]) k = 1; break; } if (k==0) Console.WriteLine("yes"); else Console.WriteLine("no"); Console.ReadKey(); } }}
- c# 判断输入字符串是否回文
- 判断回文 输入字符串 输出是否为回文
- 判断输入的字符串是否为回文(对称)字符串
- 判断字符串是否回文
- 判断字符串是否回文
- 判断字符串是否回文
- 判断字符串是否回文
- 判断字符串是否回文
- 判断字符串是否回文
- 判断字符串是否回文
- Quzh[python]判断是否为回文——判断用户输入的字符串是否为回文。
- 1524 判断输入的字符串是否为回文。
- C语言判断输入的字符串是否为回文结构
- 编写程序,判断输入的字符串是否回文
- python判断输入的字符串是否是回文联
- C语言实现判断所输入字符串是否为回文
- 判断字符串是否为回文
- 判断一个字符串是否回文
- 读取数据到结构体数组
- 程序中该有的括号还是要有
- iBatis整理——iBatis批处理实现(Spring环境)
- 常用排序-冒泡法排序
- IOWR_ALTERA_AVALON_PIO_DATA函数用法
- c# 判断输入字符串是否回文
- 时间计算
- 用jlink在mini2440上烧写uboot
- 编译原理程序设计实践(三) 错误处理和词法分析代码
- Unit Testing in JUnit
- linux源码阅读
- 用OpenGL ES绘制一个彩色的三角形
- 有序的结构体数组
- 程序员必读的30本书