include "stdio.h"int fb(int a1, int a2, int n); //斐波那契求和函数原型申明 int main(){ int a, b, n, s;scanf("%d%d%d", &a, &b, &n);s = fb(a, b, n);printf("%d\n", s);} int fb(int a1, int a2, int n){ if(n==1)return a1;if(n==2)return a2;...
include<stdio>int aimsum(int n){ if(n == 1) return 6; else return aimsum(n-1) + n*(n+1)*(n+2);}int main(){ int n,sum,i; sum = 0; scanf("%d",&n);// input n for(i=1;i<=n;++i) { sum += i*(i+1)*(i+2); } ...