Pretest loop - final
Mar 24 AM Solution. Questions Courses. Mar 24 AM. Expert's Answer Solution. Feedback :. Next Previous. pretest loopExpert's Answer
Join Stack Overflow to learn, share knowledge, and build your career. Connect and share knowledge within a single location that is structured and easy to search. Im doing a factorial loop test for college but I cannot figure this bit out.
I want to pretest loop the factorial calculation and echo it but also to remove a bit of the calculation. You could increase your while condition by one and add another echo after the loop Demobut I don't recommend it. You should use a pre-test loop. I ;retest also using the combined "multiplication-assignment" operator to increase the end product. In a professional application, I'd probably use functional programming, but you are probably only doing this as an academic exercise.
Your Answer
Regardless, here is one way that that style can look:. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams?
Learn more. PHP loop and removing a character from the loop Ask Question. Asked 9 days ago. Active 2 days ago. Viewed 37 times. Improve this question.
Jamie Jamie 1. Does it need to be a literal loop, or can you use functional programming?
Vault agent injector github
Where is factorial declared? Or are you building this in the loop. Add a comment. Active Oldest Votes. Improve this answer. Gowire Gowire 3 3 silver badges 20 20 bronze badges.
Ready new york ccls grade 5 ela
Prashanth Benny Pretest loop Benny 1, 18 18 silver badges 28 28 bronze badges. Why do you endorse the use of strrev? Thanks Gowire for pointing it out. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password.
Post as a guest Here
One thought on “Pretest loop”