Answer Posted / azad sable, chiplun
void main()
{
int i,j,k,t,f1,f2,f3,z,sp;
sp=20;
clrscr();
for(i=0;i<=4;i++)
{
for(k=0;k<sp-1;k++)
printf("");
sp=0;
for(j=0;j<=i;j++)
{
f1=f2=f3=1;
t=i;
while(t!=0)
{
f1=f1*t;
t--;
}
t=j;
while(t!=0)
{
f2=f2*t;
t--;
}
t=i-j;
while(t!=0)
{
f3=f3*t;
t--;
}
z=f1/(f2*f3);
printf("%4d",z);
}
printf("\n");
}
getch():
}
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Why c is a mother language?
What functions are used for dynamic memory allocation in c language?
Is c++ based on c?
Was 2000 a leap year?
What is a structure in c language. how to initialise a structure in c?
Differentiate abs() function from fabs() function.
What is c++ used for today?
Write a program to reverse a given number in c language?
Which built-in library function can be used to match a patter from the string?
What do you mean by a sequential access file?
can any one tel me wt is the question pattern for NIC exam
write a c program to find the sum of five entered numbers using an array named number
What is the advantage of a random access file?
Explain what is wrong in this statement?
Explain the ternary tree?