判断是否为回文数+求一个序列的第30个数
来源:互联网 发布:windows键盘钩子程序 编辑:程序博客网 时间:2024/09/21 09:26
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace _11111{ class Program { static void Main(string[] args) { string c; int i, j; bool falg; falg=true; Console.Write("输入一个字符串:"); c = Console.ReadLine(); char[] s = c.ToCharArray(); for (j = 0; j < s.Length / 2; j++) { if (s[j] != s[s.Length - j - 1]) { falg = false; break; } } if (falg) { Console.WriteLine("是回文数。"); } else { Console.WriteLine("不是回文数。"); } Console.ReadLine(); } }}
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace _11111{ class Program { static void Main(string[] args) { int c=0,a=1, b=1; for (int i = 0; i < 28; i++) { c = a + b; a = b; b = c; } Console.WriteLine("第30个数为:{0}",c); Console.ReadLine(); } }}
0 0
- 判断是否为回文数+求一个序列的第30个数
- 求一个数是否为回文数
- 判断一个数是否为回文数
- 判断一个数是否为回文数
- 判断一个数是否为回文数
- 判断一个数是否为素数&求1到某一个数之间的所有素数
- 判断一个数是否为回文素数
- 判断一个数是否为回文
- 判断一个整数是否为回文数
- 判断一个数字是否为回文数
- 判断一个整数是否为回文数
- 判断一个整数是否为回文数
- 判断一个数是否为回文字符串
- 判断一个整数是否为回文数
- 判断一个整数是否为回文数
- 判断一个数是否为回文
- 位运算 - 判断一个数是否为2的n次方 | 求一个数位为1的个数
- 2013.12.27 判断是否为回文数与斐波拉契序列问题判断是否为回文数
- uva 1314 - Hidden Password(最小表示法)
- Qt 布局管理 - 停靠窗口
- 获取操作系统已用的端口号
- Activity和Service通信 使用BroadcastReceiver
- UIView中常见的方法汇总
- 判断是否为回文数+求一个序列的第30个数
- Hadoop之Linux修改虚拟本机地址
- 获取端口方法2
- Android Manifest.xml 结构详解
- 解决AutoCAD2002中的"许可证错误"和"取消今日知道"
- Qt窗口屏幕居中显示
- Jsp include 模板页中css和js冲突问题以及各jsp加载顺序
- oracle中dual表
- python 计算校验和