\"Create a pseudocode program that asks the user to enter an integer number from
ID: 3538457 • Letter: #
Question
"Create a pseudocode program that asks the user to enter an integer number from 1 to 20, and then calls a function to compute the factorial of this number. A factorial is the product of an integer times each smaller integer down to 1. For example, the factorial of 5 is 5*4*3*2*1 and has the value of 120. Use Notepad to create the program, and save the file as factorial.txt. (Hint: Set a result variable to 1, and then use a For loop that multiplies the result variable by every number from the given number down to 1.) Use Notepad to create the program and post here No Java, no java script, no C++Explanation / Answer
last answer a little problem,i corrected it now.integer i,j,fact; fact=1; prompt user "Enter integer between 1 ans 20"; for(j=i;j>=1;j=j-1) fact=fact*j; return fact;
Related Questions
Hire Me For All Your Tutoring Needs
Quick quotes • Clear explanations • Study support
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.