Write the function to calculate the factorial value of any integr argument call function from man() and print the result in main | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Write the function to calculate the factorial value of any integr argument call function from man() and print the result in main

pleas help me 😢

31st Dec 2016, 3:09 PM
rag
rag - avatar
1 Answer
0
Int fact=1; cin>>n; for(int i=1;i<=n;i++) { fact *=i; } cout <<fact;
1st Jan 2017, 6:24 AM
Shiv Kumar
Shiv Kumar - avatar