0% found this document useful (0 votes)
18 views

Start: Fig 25.4 Flowchart For Computing Factorial N

This flowchart computes the factorial of a number N. It initializes a counter M to 1 and the factorial F to 1. It then multiples the factorial F by the counter M and increments M until M equals the input number N, at which point it prints out the final value of F.

Uploaded by

Mohd Shahid
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views

Start: Fig 25.4 Flowchart For Computing Factorial N

This flowchart computes the factorial of a number N. It initializes a counter M to 1 and the factorial F to 1. It then multiples the factorial F by the counter M and increments M until M equals the input number N, at which point it prints out the final value of F.

Uploaded by

Mohd Shahid
Copyright
© Attribution Non-Commercial (BY-NC)
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 1

START

READ N

M=1 F=1

F=F*M

NO
M=M+1 IS M=N?

YES
PRINT F END

Fig 25.4

Flowchart for computing factorial N

You might also like