C Programming :: Loop Control - Discussion
Home > C Programming > Loop Control > MCQs Questions Discussion
53 / 61
Consider the following iterative implementation to find the factorial of a number.
int main()
{
int n = 6, i;
int fact = 1;
for(i=1;i<=n;i++)
_________;
printf("%d",fact);
return 0;
}
Which of the following lines should be inserted to complete the above code?
Afact = fact + i
Bfact = fact * i
Ci = i * fact
Di = i + fact
Answer: Option (Login/Signup)
Show Explanation
Asked In ::
No Discussion on this question yet!