menu search
brightness_auto
more_vert
Write a C++ program to find the factorial of a inputted number  Turbo c++ maharashtra board
thumb_up_off_alt 0 like thumb_down_off_alt 0 dislike

1 Answer

more_vert
 
verified
Best answer
#include<iostream.h>
#include<conio.h>
void main()
{
 int i,n;
 long int fact;
  clrscr();
 cout<<"Enter the number to find the Factorial"<<endl;
 cin>>n;
 fact=1;
 for (i=1;i<=n;i++)
 {
fact=fact*i;
 }
  cout<<"The Factorial of the given number is "<<fact<<endl;
 getch();
 }
for turbo C++
thumb_up_off_alt 0 like thumb_down_off_alt 0 dislike

Related questions

thumb_up_off_alt 0 like thumb_down_off_alt 0 dislike
1 answer
thumb_up_off_alt 1 like thumb_down_off_alt 0 dislike
1 answer
thumb_up_off_alt 1 like thumb_down_off_alt 0 dislike
1 answer
thumb_up_off_alt 0 like thumb_down_off_alt 0 dislike
1 answer
thumb_up_off_alt 0 like thumb_down_off_alt 0 dislike
1 answer
thumb_up_off_alt 0 like thumb_down_off_alt 0 dislike
1 answer

4.8k questions

4.3k answers

67 comments

388 users

...