3.代码示例
#include<iostream> using namespace std; int main(){ int i,j,s=11; for(i=4;i>0;i--){ s=(s+1)*(i+1)/i-1; } cout<<"鱼缸中共有"<<s<<"条鱼"; return 0; }
4.结果输出
标签:std,11,示例,int,Day15,main From: https://www.cnblogs.com/cream867/p/17375527.html
3.代码示例
#include<iostream> using namespace std; int main(){ int i,j,s=11; for(i=4;i>0;i--){ s=(s+1)*(i+1)/i-1; } cout<<"鱼缸中共有"<<s<<"条鱼"; return 0; }
4.结果输出
标签:std,11,示例,int,Day15,main From: https://www.cnblogs.com/cream867/p/17375527.html