{"id":33806,"date":"2016-03-08T12:25:54","date_gmt":"2016-03-08T18:25:54","guid":{"rendered":"http:\/\/manuelch96.wordpress.com\/?p=277"},"modified":"2016-03-08T12:39:57","modified_gmt":"2016-03-08T18:39:57","slug":"wsq09-6","status":"publish","type":"post","link":"https:\/\/kenscourses.com\/tc101winter2016\/2016\/03\/wsq09-6\/","title":{"rendered":"#WSQ09"},"content":{"rendered":"<p>Hello again, I was too busy for doing post, but now I have some time for doing some posts. Well for this WSQ we where ask for this:<\/p>\n<p>&#8220;Create a program that asks the user for a non-negative integer (let\u2019s call that number n) and display for them the value of n! (n factorial).<\/p>\n<p>After showing them the answer, ask them if they would like to try another number (with a simple y\/n response) and either ask again (for y) or quit the program and wish them a nice day (if they answered n).&#8221;<\/p>\n<p>Well solving this problem was very simple. Fist what I did was to declare two variables, fac and x. Fac is for the number and x if for a yes or not. Then we ask for the first value, the number. And then we call the function.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-284\" src=\"http:\/\/kenscourses.com\/tc101winter2016\/wp-content\/uploads\/2016\/03\/e1b2c1b3c4a42402d265eda00ac010fc.jpg\" alt=\"Captura de pantalla 2016-03-08 a las 12.13.49 p.m.\"   \/><img decoding=\"async\" class=\"alignnone size-full wp-image-285\" src=\"http:\/\/kenscourses.com\/tc101winter2016\/wp-content\/uploads\/2016\/03\/e6446b54e737f4045e65ae99795d28a3.jpg\" alt=\"Captura de pantalla 2016-03-08 a las 12.13.59 p.m.\"   \/><\/p>\n<p>Here is the link for you to download my code and play with it:\u00a0https:\/\/www.dropbox.com\/s\/idgvdui4oy2djof\/fac.c?dl=0<\/p>\n<p>&nbsp;<\/p>\n<p>  <a rel=\"nofollow\" href=\"http:\/\/feeds.wordpress.com\/1.0\/gocomments\/manuelch96.wordpress.com\/277\/\"><img decoding=\"async\" alt=\"\" border=\"0\" src=\"http:\/\/kenscourses.com\/tc101winter2016\/wp-content\/uploads\/2016\/03\/7e9d7e349e7e805784bd4d7f086db224.jpg\" \/><\/a> <img loading=\"lazy\" decoding=\"async\" alt=\"\" border=\"0\" src=\"http:\/\/kenscourses.com\/tc101winter2016\/wp-content\/uploads\/2016\/03\/4a588afa4a4f142fba71e96b1688f9ff.jpg#038;blog=105380966&#038;%23038;post=277&#038;%23038;subd=manuelch96&#038;%23038;ref=&#038;%23038;feed=1\" width=\"1\" height=\"1\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hello again, I was too busy for doing post, but now I have some time for doing some posts. Well for this WSQ we where ask for this: &#8220;Create a program that asks the user for a non-negative integer (let\u2019s call that number n) and display for them the value of n! (n factorial). After &hellip; <a href=\"https:\/\/kenscourses.com\/tc101winter2016\/2016\/03\/wsq09-6\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">#WSQ09<\/span><\/a><\/p>\n","protected":false},"author":56,"featured_media":33808,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,4],"tags":[24],"class_list":["post-33806","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blogs","category-syndicated","tag-wsq"],"_links":{"self":[{"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/posts\/33806","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/users\/56"}],"replies":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/comments?post=33806"}],"version-history":[{"count":3,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/posts\/33806\/revisions"}],"predecessor-version":[{"id":33814,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/posts\/33806\/revisions\/33814"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/media\/33808"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/media?parent=33806"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/categories?post=33806"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/tags?post=33806"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}