Platinum Partner

Combinari

// combinari



#include "stdafx.h"


long comb(int n, int k)
{
	long f;
	if ((n==k) || (k==0)) f=1;
	else f = comb(n-1, k-1) + comb(n-1, k);

	return f;
}

int _tmain(void)
{
	int n, k;

	printf("n=");scanf("%d",&n);
	printf("k=");scanf("%d",&k);

	printf( "f=%ld", comb(n, k) );

	return 0;
}


{{ tag }}, {{tag}},

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}
{{ parent.authors[0].realName || parent.author}}

{{ parent.authors[0].tagline || parent.tagline }}

{{ parent.views }} ViewsClicks
Tweet

{{parent.nComments}}