数据库,创建函数,求1+2+3+ ……+n的和,并返回和值

2023-07-26 10:27发布

#includestdio.hintmyf(intm){return(1+m)*m>>1;}#includeint total(int n

#include"stdio.h"intmyf(intm){return(1+m)*m>>1;}#includeint total(int n