VF语句中DO while 1/t >=le-6

来源:学生作业学帮网 编辑:学帮网 时间:2024/05/27 07:04:35

VF语句中DO while 1/t >=le-6

6.0下编一样
main()
{
int n=1;
int sum=0;
while(n<=100)
{
sum+=n;
n++;
}
}
先创建一个文件 touch test.c
编写文件 vi test.c
在vi模式下输入C开始修改文件
修改完按Esc键,输入wq(保存并退出vi模式)
编译:gcc test.c -o test
运行 ./test
好像是这样哈,不知道个别命令