Viewing code of 1111
// ------ 1111.CPP --------------
//--- Programmed By Rajesh -----

/*
This is a program to calculate factorial without the use of recursion
*/
#include<stdio.h>
#include<conio.h>
int factorial(int a)
{
int i,pro=1;
for (i=2;i<=a;i++)
pro*=i;
return(pro);
}
void main()
{
int a,pro;
clrscr();
printf("\nThe factorial of the following number is required:",a);
scanf("%d",&a);
pro=factorial(a);
printf("the factorial of %d is %d",a,pro);
getch();
}