skip to main
|
skip to sidebar
PROGAMMING
Wednesday, May 6, 2009
PROGRAM TO FIND FACTORIAL OF A GIVEN NUMBER
#include
main()
{
int i,j,k,fact=1;
printf("\n\nenter a number");
scanf("%d",&i);
for(j=1;j<=i;j++)
{
for(k=j;k>0;k--)
{
fact=fact*k;
}
printf("%d\t %4d\n",j,fact);
fact=1;
}
getch();
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Followers
Blog Archive
▼
2009
(44)
►
December
(1)
►
November
(13)
►
October
(4)
▼
May
(26)
C-PROGRAM FOR BINARY SEARCH USING RECURSIVE FUNCTION
C-PROGRAM FOR BINARY SEARCH
C-PROGRAM FOR QUICK SORT
C-PROGRAM FOR MERGE SORT
C-PROGRAM FOR BUBBLE SORT
BEST WEBSITES USEFULL TO EVERY ONE
PROGRAM FOR IMPLEMENTING QUEUE USING LINKED LIST
PROGRAM FOR IMPLEMENTING STACK USING LINKED LIST
PROGRAM FOR IMPLEMENTING CIRCULAR LINKED LIST
PROGRAM FOR IMPLEMENTING DOUBLE LINKED LIST
PROGRAM FOR IMPLEMENTING SINGLR LINKED LIST
PROGRAM FOR EVELUATING SINGLE LINKED LIST
PROGRAM TO CONVERT INFIX EXPRESSION TO POSTFIX EXP...
PROGRAM FOR SORTING THE GIVEN STRINGS
C PROGRAM FOR GREP
PROGRAM TO PRINT STARS IN THE FORM OF RHOMBUS
PROGRAM TO PRINT MULTIPLICATION TABLE
PROGRAM TO FIND FACTORIAL OF A GIVEN NUMBER
PROGRAM TO GENERATE PASCAL TRIANGLE
PROGRAM TO FIND WHETHER THE GIVEN NUMBER IS PRIME ...
PROGRAM TO FIND GCD OF GIVEN NUMBERS
PROGRAM FOR CIRCULAR QUEUE
PROGRAM TO CONVERT A GIVEN NUMERICAL TO ALPHABETIC...
PROGRAM TO IMPLEMENT STACK
PROGRAM TO IMPLEMENT TOWERS OF HANOY
C-PROGRAM FOR QUEUE
About Me
TALLAPANENI
View my complete profile
No comments:
Post a Comment