Sintak Segitiga Pascal di C++

#include
using namespace std;

int fakt(int n)
{
if(n==1||n==0)
{
return 1;
}
return (n*fakt(n-1));

}
int kombinasi(int n, int r)
{
return (fakt(n)/(fakt(n-r)*fakt(r)));
}

int main()
{
int n;
cin>>n;
for(int i=0;i

Comments

Popular posts from this blog

SNMPv1-(Simple Network Management Protocol)

Tutorial Menabung Saham

Konversi Desimal ke Heksadesimal -Turbo Assembler