question is about c++ factorial

April 10, 2011 at 07:28:48
Specs: Windows 7
i am new student in c++, i want to make a program of facorial of integer at the end compiler ask do u wish to continues;plz help me in my study

See More: question is about c++ factorial

Report •

April 10, 2011 at 11:22:39
Is your question about factorials or user interaction? For the former, most textbooks have sample functions for fractorials and whatnot; for the latter, use a loop and prompt the user for his or her choice to continue - the test condition of the loop would be their response.

Report •

April 12, 2011 at 02:38:07
/* in c# u can do it like this convert it to c......

class factorial
public static void Main(string[] args)
int f = 1, n, m;
Console.WriteLine("enter the number ");
n = Convert.ToInt32(Console.ReadLine());
for (m = 1; m <= n; m++)
f = f * m;


Report •

Related Solutions

Ask Question