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
Tell me what are bitwise shift operators?
If null and 0 are equivalent as null pointer constants, which should I use?
What is the use of linkage in c language?
Difference between malloc() and calloc() function?
What is pass by reference in functions?
Array is an lvalue or not?
Write an efficient algo and C code to shuffle a pack of cards.. this one was a feedback process until we came up with one with no extra storage.
`write a program to display the recomended action depends on a color of trafic light using nested if statments
What is difference between class and structure?
Explain is it better to use a pointer to navigate an array of values, or is it better to use a subscripted array name?
What happens if you free a pointer twice?
What is function definition in c?
What is the difference between union and anonymous union?
Write a function stroverlap that takes (at least) two strings, and concatenates them, but does not duplicate any overlap. You only need to worry about overlaps between the end of the first string and the beginning of the second string. Examples: batman, manonthemoon = batmanonthemoon batmmamaman, mamamanonthemoon = batmmamamanonthemoon bat, man = batman batman, batman = batman batman, menonthemoon = batmanmenonthemoon
How can I discover how many arguments a function was actually called with?