Wap in cpp for finding factorial using while loop

#Include<iostream.h>
#include<conio.h>
Void main()
{

Int a,b,c;
Clrscr();
Cout<<’enter the number of whom you want to find the factorial’;
Cin>>b;
A=1;c=b;
While(a<b){
C=c*a;
A++;}
Cout<<”\n\n factorial is ”<<c;

}

No comments:

Post a Comment

If You Like The Post Or want to Add Something More
then feel free to comment