您好,欢迎来到化拓教育网。
搜索
您的当前位置:首页[习题9]while

[习题9]while

来源:化拓教育网

使用教材

ex9.c

#include <stdio.h>

int main(int argc, char *argv[])
{
    int i = 25;
    while(i >= 0) {
        printf("%d ",i);
        i--;
    }

    // need this to add a final newline
    printf("\n");

    return 0;
}

Makefile

CC=clang
CFLAGS=-Wall -g

clean:
    rm -f ex9

run

anno@anno-m:~/Documents/mycode/ex9$ make ex9
clang -Wall -g    ex9.c   -o ex9
anno@anno-m:~/Documents/mycode/ex9$ ./ex9
25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 

Copyright © 2019- huatuo9.cn 版权所有 赣ICP备2023008801号-1

违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务