In this task, we needed to create a program that ask the user for any nonnegative number to calculate its factorial and print the result on the screen. To do it, I used the for <\/strong>loop, a repetition control structure, which made things easier. Here is the program: <\/p>\n <\/p>\n The for<\/strong> loop has the following sintax:<\/p>\n for (init<\/span><\/em>;<\/span> condition<\/span><\/em>;<\/span> increment<\/span><\/em>){<\/span><\/p>\n statements<\/span><\/p>\n }<\/span><\/p>\n In init<\/em>, <\/span>you can declare and initialize any loop control variables; in condition<\/em>, <\/span>the condition is evaluated and, if it is true, the body of the loop is executed, if false, it will stop; and, in increment<\/em>, you can <\/span>update any loop control variables.<\/p>\n Here’s the program being executed:<\/p>\n <\/p>\n To do this activiy, I consulted this web page: http:\/ You can look at my code in my GitHub as well: https:\/ In this task, we needed to create a program that ask the user for any nonnegative number to calculate its factorial and print the result on the screen. To do it, I used the for loop, a repetition control structure, which made things easier. He… Continue reading