12-10-2011, 06:31 PM
factorial in C++ code 2011
Code:
// to find factorial of a number
#include<iostream.h>
#include<conio.h>
int main()
{
int i,m;
cout<< "enter a number";
cin>> i;
for ( int p=i;p>=0;p--)
{ p=p*(p-1);
p=m;
}
cout << m;
getch();
return(0);
}0300-9520262
Get solution in 24 hour |cpmputer & internet
mileys81:[SIZE="4"][SIZE="3"]....[/SIZE][/SIZE]
