//Program to find factorial of a number
#include<iostream.h>
#include<conio.h>
void main()
{
int i, num, fact=1;
cout<<"n ...
Upcoming SlideShare
Loading in...5
×

Program to find factorial of a number

165

Published on

This is for the students of computer science for their projects

Published in: Education
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
165
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
1
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Transcript of "Program to find factorial of a number"

  1. 1. //Program to find factorial of a number #include<iostream.h> #include<conio.h> void main() { int i, num, fact=1; cout<<"n Enter the integer"; cin>>num; i=num; while(num) { fact= fact*num; --num; } cout<<"n Factorial"<<fact; getch(); }

×