The wsq08 is about to do a program that calculates the factorial number of a number given by the user, and then ask the user if he wants to calculate another factorial.<\/p>\n
A link to wth is a factorial<\/a><\/span><\/p>\n So the code was pretty easy, I just used, as usual, a while loop where a variable was multiplied by a counter, like 1 times one, then the result times two, then the result times 3 and so on.<\/p>\n In order to allow the user to start over, I put all the coede inside a loop with the condition that c==”y”; worth \u00a0saying that at the end of the program it asks the user to type \u00a0 y \u00a0 if he wants to keep using the app.<\/p>\n Github code<\/a><\/span><\/p>\n Serioulsy, this was easy \ud83d\ude00<\/span><\/p>\n <\/p>\n <\/a> <\/p>\n","protected":false},"excerpt":{"rendered":" The wsq08 is about to do a program that calculates the factorial number of a number given by the user, and then ask the user if he wants to calculate another factorial. A link to wth is a factorial So the code was pretty easy, … Continúa leyendo WSQ 09: Factorial<\/span><\/a><\/p>\n","protected":false},"author":191,"featured_media":23389,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,3],"tags":[45,334,39],"_links":{"self":[{"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/posts\/23390"}],"collection":[{"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/users\/191"}],"replies":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/comments?post=23390"}],"version-history":[{"count":2,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/posts\/23390\/revisions"}],"predecessor-version":[{"id":23651,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/posts\/23390\/revisions\/23651"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/media\/23389"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/media?parent=23390"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/categories?post=23390"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101fall2015\/wp-json\/wp\/v2\/tags?post=23390"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}