HOME

Start

Control Statements

Array

Function

Structure

Pointer

File

Projects

 

 

 

 

 

 

C programing

Ckalari.com is the No.1 website to get the best of C programs, free source codes, projects in c language……  

A C program to find factorial of given number

#include<stdio.h>

#include<conio.h>

void main()

        {

           int f,i,no;

           clrscr();

           printf("Enter a number which we have to find factorial");

           scanf("%d",&no);  

           for(f=1,i=1;i<=no;i++)

           {

               f=f*i;  

           }

           printf("Factorial of %d is %d",no,f);

           getch();

        }

 

Copyright © 2007-2008 www.ckalari.com