C Program to find Factorial of a input number

      4 Comments on C Program to find Factorial of a input number
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
int x,i;
int y=1;
printf("Enter Number to find factorial\n");
scanf("%d",&x);
for(i=x;i>=1;i--)
 {
  y=y*i;
 }
printf("Factorial of input number is:- %d",y);
getch();
}

OUTPUT:-

4 comments on “C Program to find Factorial of a input number

  1. Cool Whatsapp Status

    I think this is among the most vital information for me.
    And i’m glad reading your article. But want to remark on few general things, The site style is wonderful, the articles is really nice : D.
    Good job, cheers

    Reply
  2. really funny jokes

    My brother suggested I might like this web site. He was totally right.
    This post truly made my day. You can not imagine just how much time I had spent for this info!
    Thanks!

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *