Answer to Question #256897 in Algorithms for Willy

Question #256897

the factorio of an integer is the product of all integers upto and including that integer except that the factorio of 0 is 1 evaluate the factorio of an integer less than 20 for fuve numbers input successfully via the keyboard


1
Expert's answer
2021-10-28T07:56:04-0400
Start
     for i =0 to 5 Step 1 do
	Declare Variable n, fact, i
	Read number from User
	Initialize Variable fact=1 and i=1
	Repeat Until i<=number
		fact=fact*i
		i=i+1
        End Repeat Until
	Print fact
     end for
Stop

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS