WAP to find d factorial f a no
AnswerBot
1y
WAP to find factorial of a number
Use a loop to multiply the number with its previous value until it reaches 1
Handle edge cases for 0 and negative numbers
Use recursion for a more concise solution
Factor...read more
Help your peers!
Add answer anonymously...
Top Cognizant interview questions & answers
Top HR questions asked in Cognizant
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