C primer plus 第六版 第六章 第十八题 编程练习答案

版权声明:转载请注明来源~ https://blog.csdn.net/Lth_1571138383/article/details/83240772

Github地址:φ(>ω<*)这里这里。

#include<stdio.h>
#define Dunbar 150  // Dunbar's number . The max limit.
int main(void)
{
	int i = 0;
	int Rabnud = 5;

	for(i = 1; Rabnud <= 150; i++)
	{
		Rabnud -= i;
		Rabnud *= 2;
		printf("On week %d, Rabnud's friends amount is %d .\n", i, Rabnud );
	}

	printf("Bye ~!\n");
	getchar();

	return 0;
} 

猜你喜欢

转载自blog.csdn.net/Lth_1571138383/article/details/83240772