习题6.3程序改错
来源:互联网 发布:数据属性二元化例子 编辑:程序博客网 时间:2024/06/06 05:09
#include<stdio.h>
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;
x++;
}
}
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;
x++;
}
}
} 心得体会:赋值号的左边必须是一个左值(可以改变的值的变量)
阅读全文
0 0
- 习题6.3程序改错
- 习题6.3,程序改错题
- 6.3程序改错题
- 6.3程序改错
- 6.3 程序改错题
- 6.3程序改错题
- 6.3程序改错
- 习题2.2,改错
- 程序改错
- 程序改错
- 程序改错
- 程序改错
- 程序改错
- 程序改错
- 程序改错
- 程序改错
- 程序改错
- 程序改错
- llvm Kaleidoscope tutorial 学习记录(2)
- spring-bean的依赖和继承
- opencv(十一)--OpenCV 中的轮廓
- linux 串口 c语言编程需要注意的事项
- TreeMap源码分析
- 习题6.3程序改错
- 单例模式有五种写法:懒汉、饿汉、双重检验锁、静态内部类、枚举。
- 12月11日 数据结构 周一
- 43. Multiply Strings
- 304. Range Sum Query 2D
- ArcEngine 报错记录
- 可变参数列表
- CNN-目标检测、定位、分割
- elcipse环境配置及svn插件安装