Program to print Pascle series in c language.
#include<stdio.h>
// function for calculate factorial
int fact(int n)
{
int i,f=1;
for(i=1;i<=n;i++)
f=f*i;
return f;
}
// function for calculate combination
int combi(int n,int r)
{
return (fact(n)/fact(n–r)/fact(r));
}
int main()
{
int i,j,c;
for(i=0;i<=5;i++)
{
for(j=0;j<=5–i;j++)
printf(” “);
for(j=0;j<=i;j++)
{
c=combi(i,j);
printf(“%d “,c);
}
printf(“n”);
}
return 0;
}
This is good and help me In programing
This is helpful for me
This is very useful programming for Computer Science student
Thank you sir for providing us
Very nice program useful of cs student
Thq sir ap to topper ho
nice program
Thank you sir for this content.
itpixel.in
ATI SUNDAR PROGRAM GURU JI
SHAILESH KUMAR.
Very nice
Perfect
Thanks sir