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
How do you use a pointer to a function?
What is pointer and structure in c?
define string ?
What is a static function in c?
Explain the use of 'auto' keyword in c programming?
Explain 'far' and 'near' pointers in c.
What is 2c dna?
What is the symbol indicated the c-preprocessor?
What is echo in c programming?
Are global variables static in c?
Explain function?
What are the advantages of Macro over function?
Explain which of the following operators is incorrect and why? ( >=, <=, <>, ==)
How is = symbol different from == symbol in c programming?
What is union and structure?