Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  hhh
Language: C/C++
Code:
#include<stdio.h>
int factr(int);
int main()
{
int i,j,k=6;
for(i=0;i<=k;i++)
{
for(j=0;i<=j;j++)
{
int c=0;
c=factr(i)/(factr(j)*factr(i-j));
printf("2%d \t",c);
}
printf("\n");
}
int factr(int m)
{
int fact=1;
if(m==0||m==1)
return 1;
while(m>1)
{
fact*=m;
m--;
}
return fact;
}
return 0;
}
Comments: