#include <stdio.h> static int ci=0; int sum(int i) { ci++; int m=0; if (i<100) { m=i+sum(i+1); printf("%d ",m); return m; } else return i; } main() { int a=0,b=1; a=sum(b); printf("\n%d",a); printf("\n%d",ci); getchar(); }
标签:ci,递归函数,int,99,+.....+,100 From: https://www.cnblogs.com/xkdn/p/16658460.html