int main()
{
int n,r,ncr;
printf("Enter any two numbers-->");
scanf("%d",&n,&r);
ncr=fact(n)/(fact(r)*fact(n-r));
printf("The NCR factor of %d and %d is %d",n,r,ncr);
return 0;
}
int fact (int n)
{
int i=1;
while(n!=0)
{
i=i*n;
n--;
}
return i;
}
Solved C Programs,C tutorial for beginners,Create simple software using "C" language,History of C programming language,Computer tips and tricks,blog,Create virus program etc.
You are the cause of my pain, yet the love I feel for you is my only consolation, my only cure..
Remembering my classmates, after few years, My eyes were filled with tears, Everyone is busy a lot, No one escaped destiny's plot, Saw the girl, whom once I thought as my best friend, Today she is some body else's girl friend, After months remembered about her for a little while, Heard she is happy, that made me smile.
It’s been raining since you left me, now I’m drowning in the flood. You see, I’ve always been a fighter, but without you I give up.
Sweetheart.....I miss ......THe whisper of your voice...The warmth of your touch and all the wonderful times that we shared together.......
When I see you smile and know that it's not for me, that's when I miss you the most.
C-PROGRAMMING © 2011 DheTemplate.com. Supported by Tips for Life and Blogging Tips