{"id":35288,"date":"2016-04-07T00:37:32","date_gmt":"2016-04-07T05:37:32","guid":{"rendered":"http:\/\/linecodesite.wordpress.com\/?p=224"},"modified":"2016-04-07T00:48:03","modified_gmt":"2016-04-07T05:48:03","slug":"factorial-calculator-wsq09-6","status":"publish","type":"post","link":"https:\/\/kenscourses.com\/tc101winter2016\/2016\/04\/factorial-calculator-wsq09-6\/","title":{"rendered":"Factorial calculator WSQ09"},"content":{"rendered":"<p>Hi everyone! I know that i haven&#8217;t blog in a while but I&#8217;m back!<\/p>\n<p>What to do?<\/p>\n<p>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).\u00a0After 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).<\/p>\n<p>Well first of all you need to instal some stuff, the big integer library, at least that was my case, here you have de link for the page\u00a0<a href=\"https:\/\/mattmccutchen.net\/bigint\/\" >BigInteger Library<\/a>.<\/p>\n<p>Also I recommend you to watch Ken&#8217;s video about this, this video is for the last semester, but it might help you.<\/p>\n<p><iframe class='youtube-player' type='text\/html' width='474' height='297' src='https:\/\/www.youtube.com\/embed\/PHZYtOhFAZs?version=3&#038;rel=1&#038;%23038;fs=1&#038;%23038;autohide=2&#038;%23038;showsearch=0&#038;%23038;showinfo=1&#038;%23038;iv_load_policy=1&#038;%23038;wmode=transparent' allowfullscreen='true' style='border:0;'><\/iframe><\/p>\n<p>&nbsp;<\/p>\n<p>Finally this is my link to my\u00a0<a href=\"https:\/\/github.com\/linecodeSite\/TC101-tasks-winter2016\/blob\/master\/Big%20Integer\" >GitHub<\/a>\u00a0for my code.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-238\" src=\"http:\/\/kenscourses.com\/tc101winter2016\/wp-content\/uploads\/2016\/04\/c62a76ae849621a89b2927a10b18a43c.jpg\" alt=\"Captura de pantalla 2016-04-07 a las 12.33.01 a.m.\"   \/><\/p>\n<p>  <a rel=\"nofollow\" href=\"http:\/\/feeds.wordpress.com\/1.0\/gocomments\/linecodesite.wordpress.com\/224\/\"><img decoding=\"async\" alt=\"\" border=\"0\" src=\"http:\/\/kenscourses.com\/tc101winter2016\/wp-content\/uploads\/2016\/04\/d862ab4c7de5bc698a61aaf150e877e3.jpg\" \/><\/a> <img loading=\"lazy\" decoding=\"async\" alt=\"\" border=\"0\" src=\"http:\/\/kenscourses.com\/tc101winter2016\/wp-content\/uploads\/2016\/04\/540de8c458cd0d964e8bde446d68619a.jpg#038;blog=105404964&#038;%23038;post=224&#038;%23038;subd=linecodesite&#038;%23038;ref=&#038;%23038;feed=1\" width=\"1\" height=\"1\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hi everyone! I know that i haven&#8217;t blog in a while but I&#8217;m back! What to do? 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).\u00a0After showing them the answer, ask them if they would like to try &hellip; <a href=\"https:\/\/kenscourses.com\/tc101winter2016\/2016\/04\/factorial-calculator-wsq09-6\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Factorial calculator WSQ09<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":35321,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,4],"tags":[114,127,243,41],"class_list":["post-35288","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blogs","category-syndicated","tag-keepcoding","tag-wsq09","tag-programming-c","tag-wsqs"],"_links":{"self":[{"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/posts\/35288","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\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/comments?post=35288"}],"version-history":[{"count":2,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/posts\/35288\/revisions"}],"predecessor-version":[{"id":35326,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/posts\/35288\/revisions\/35326"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/media\/35321"}],"wp:attachment":[{"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/media?parent=35288"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/categories?post=35288"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kenscourses.com\/tc101winter2016\/wp-json\/wp\/v2\/tags?post=35288"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}