C/C++ Programs
Home
C programs
C++ Programs
Home
About
Contact
Home
C programs
Write a C program to find Factorial of Given Number
Write a C program to find Factorial of Given Number
Bibek Adhikari
April 04, 2013
#include<stdio.h>
int main()
{
int a, b, c, d;
printf("Enter number: ");
scanf("%d", & a);
c= 1;
for(b= 1; b <= a; b= b++)
{
c = c * b;
//printf("process = %d \n", c);
}
d= c;
printf("Factorial of given number = %d \n", d);
return 0;
}
Post a Comment
0 Comments
Most Popular
C++ Program to find Area and Perimeter of Rectangle Using Class
May 24, 2013
Write a C++ Program to find the distance between two points
May 24, 2013
Write a C program that defines a structure called student , store the student's name,roll no,address,date of birth and print it
April 04, 2013
Write a C program to find the sum of first 10 even numbers
April 03, 2013
Write a C program to find the largest number among 10 given numbers
April 04, 2013
C program to implement Top down parser with backtracking.
February 18, 2016
Write a C++ program to find largest number among 10 numbers
May 24, 2013
Write a C program to find whether the number is prime or composite
April 03, 2013
C++ Program Using Switch Statement
May 24, 2013
Write a C program to find LCM of Given Number using function
April 04, 2013
More programs
Loading...
Python Codes
Loading...
Contact form
0 Comments