Home
Posts RSS
Comments RSS
Edit
Programs
Search & Find out
Saturday, November 21, 2009
Factorial of 'n' number
,
Author:
Raviteja
|
Filed Under:
c
|
#include "stdio.h"
#include"conio.h"
void main()
{
clrscr();
int n,i,f=1;
printf(" Enter a number ");
scanf("%d",&n);
for(i=n;n>0;n--)
{
f=f*i;
}
printf("\n\n The factorial of the number %d is %d",n,f);
getch();
}
Download the executable (.exe) file for this program..
download
0 comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
StoresnOffers.com
Find the best Local Offers, Stores from Stores, Restaurants, Malls and Supermarkets near you. Follow us to get Latest Deals & Offers
http://www.storesnoffers.com
Like Facebook Page
Popular Posts
FALSE POSITION METHOD
#include "stdio.h" #include "conio.h" #include "math.h" void main() { int power,i=0,m,n,n1,l; ...
Bisection Method
It includes accepting a function, two initial values & find the solution #include "stdio.h" #include "conio.h"...
dda line drawing Program
#include "stdio.h" #include "conio.h" #include "graphics.h" #include "math.h" void dda (float ...
Newton Raphson Method
#include "stdio.h" #include "conio.h" #include "math.h" void main() { int power,i,m,l,n,n1; double c[10...
line drawing Program
#include "stdio.h" #include "conio.h" #include "graphics.h" void main() { int gd,gm,x,x1,x2,y,y1,y2,a...
TRAPEZOIDAL RULE
#include "stdio.h" #include "conio.h" #include "math.h" void main () { int i; float u,l,n,h,tmp,...
bresenham line drawing Program
#include "stdio.h" #include "conio.h" #include "graphics.h" #include "math.h" void brs (int x1,...
Basic of C Program
Basics of C Format : #include "stdio.h" \* Header files*/ #include ...
multiplation of two matrix
#include "stdio.h" #include "conio.h" void main() { int a[3][3], b[3][3], c[3][3],i,j,k; clrscr(); printf(...
Sum of prime numbers
#include "stdio.h" #include "conio.h" void main () { int i,n,R,m; clrscr (); printf("Enter a no....
Labels
c
(57)
c#
(1)
c++
(20)
Blog Archive
Blog Archive
November (1)
December (52)
November (22)
About Me
Raviteja
View my complete profile
My Blog List
Term of Use
0 comments:
Post a Comment