write a code for { fact n= n*(n-2)*(n-4)*.......}
AnswerBot
1y
Code to calculate factorial of odd numbers
Create a variable to store the result and initialize it to 1
Use a loop to iterate through odd numbers from n to 1
Multiply the result variable with each odd nu...read more
Help your peers!
Add answer anonymously...
Top Samsung interview questions & answers
Top HR questions asked in Samsung
Stay ahead in your career. Get AmbitionBox app
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+
Reviews
4 L+
Interviews
4 Cr+
Salaries
1 Cr+
Users/Month
Contribute to help millions
Get AmbitionBox app