write an algorithm for finding the factorial of the number
Answers
Answered by
10
Answer:
Algorithm:
Step 1:Start
Step :2Read a number num
Step 3:Set sum=0 Dup=num
Step 4:While num>0 true continue else go to step 8
Step 5:Set rem=num%10
Step 6:Set sum=sum* 10+rem
Step 7:Set num=num/10 go to step 4
Step 8:Print sum value that is reverse number
Step 9:Stop.
Similar questions