hi! to everyone
i have to make a program in c++ about factorial but the main problem is that the working of factorial must me shown for eg.
4!=4*3*2*1
like this on the output screen i had done upto here....
#include <stdio.h>
#include <conio.h>
int main()
{
long float i,j,n;
clrscr();
gotoxy(33,7);
printf("enetr any value=");
scanf("%lf",&n);
gotoxy(32,4);
printf("-----------WORKING--------------");
gotoxy(32,5);
printf(" =======");
j=1;
for ( i=1; i<=n; i++)
{
j=j*i ;
}
gotoxy(33,8);
printf("The factorial is %lf\n", j);
getch();
}
if any one help me in easier way because iam beginner user of c++
thank you!