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 many types of sorting are there in c?
write a proram to reverse the string using switch case?
Explain what is the use of a semicolon (;) at the end of every program statement?
What is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?
Write a C++ program to generate 10 integer numbers between - 1000 and 1000, then store the summation of the odd positive numbers in variable call it sum_pos, then find the maximum digit in this variable regardless of its digits length.
Why main function is special give two reasons?
A text file that contains declarations used by a group of functions,programs,or users a) executable file b) header file c) obj file d) .cfile
What are the different types of errors?
cavium networks written test pattern ..
What is a structure in c language. how to initialise a structure in c?
any restrictions have on the number of 'return' statements that may be present in a function. a) no restriction b) only 2 return statements c) only 1 return statements d) none of the above
What do header files do?
What is the explanation for modular programming?
What is an array? What the different types of arrays in c?
string reverse using recursion