习题7(7.1)

来源:互联网 发布:js上拉查看图文详情 编辑:程序博客网 时间:2024/06/05 04:36
#include <stdio.h>int square(int i){    return i*i;}int main(){    int i=0;    i=square (i);    for (;i<3;i++)    {        static int i=1;        i+=square (i);        printf("%d,",i);    }    printf("%d\n",i);    return 0;}

这里写图片描述

原创粉丝点击