Oh.. That was silly. Thank You :)
#include <stdio.h>
main()
{
int i=1, n, p;
printf("Enter n\n");
Type: Posts; User: phoenix.labs
Oh.. That was silly. Thank You :)
#include <stdio.h>
main()
{
int i=1, n, p;
printf("Enter n\n");
It's taken as input from the user -
#include <stdio.h>
/*to find factorial - considering user only enters +ve integers*/
main()
{
This function wont work for a factorial function. Trying to figure out why.
while(i<n)
{
n=n*i;
i++;
}