走楼梯
来源:互联网 发布:java猜数字代码 编辑:程序博客网 时间:2024/06/02 11:06
#include <stdio.h>int main(){ int x=1,find=0; while(!find) { x++; if(x%2==1&&x%3==2&&x%5==4&&x%6==5&&x%7==0) { printf("x=%d\n",x); find=1; } } return 0;}
注意:
1.赋值与恒等于的区别;
2.看不懂,没印象的即使百度查询,!find相当于find==0。
阅读全文
0 0
- 走楼梯
- 走楼梯
- 走楼梯
- 走楼梯
- 走楼梯
- 走楼梯
- 走楼梯
- 走楼梯
- 走楼梯
- 走楼梯问题
- 楼梯的走法
- 走楼梯问题
- SDUT2876_走楼梯(大数)
- Problem 1031 - 走楼梯
- 动态规划走楼梯
- SDUT OJ 走楼梯
- hdu 2041 走楼梯
- 动态规划-走楼梯
- UNDO 正则表达式
- 九九乘法表
- Value Noise(一)
- 关于JavaScript中的不同数据类型转换判断
- 如何简单了解TCP
- 走楼梯
- MAC 解决bash: mysql: command not found 的方法
- Android Intent 使用说明
- Section1.1-Your Ride Is Here
- Part 4 Package与Import 定义一个圆类(Circle),其所在的包为bzu.info.software;定义一个圆柱类Cylinder,其所在的包为bzu.info.com;
- 信使Message间的通信
- 类的重写和类的私有变量
- QT_TimeSchedule
- 关于实现自执行数据库备份bat生成和使用