Question: 2.18 and 2.19. Working on basic psuedocode problems, but im having trouble understanding on what to do with R and how to use it. We

2.18 and 2.19. Working on basic psuedocode problems, but im having trouble understanding on what to do with R and how to use it. We currently are not using any program, so this is just notebook paper work for learning the basics.
2.18. What is Q after execution. M is a user-provided whole number greater than 1. INPUT M R=M-1 DOFOR K = 1 to R Q = Q*(M-K) END FOR 2.19. What is P after execution? Assume that R is a whole number greater than 1. INPUT Q,R P = Q^4 DOFOR K = 1 to R P = P/K END FOR
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
