New course! Every coder should learn Generative AI!
Try a free lesson0
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 😢
1 Answer
0
Int fact=1;
cin>>n;
for(int i=1;i<=n;i++) {
fact *=i;
}
cout <<fact;