{"action":"created","comment":{"url":"https://api.github.com/repos/CPRF-Session2/Assignment3/pulls/comments/72121141","id":72121141,"diff_hunk":"@@ -0,0 +1,15 @@\n+Armstrong Park This is my theory homework\n+1.\n+a.O(n)\n+b.2(n)\n+c.n^2\n+\n+\n+\n+2.\n+a. The problem is, is that since there is nothing other than breaks in the cases. If the user inputs a number between 1 and 4 inclusive, while it will still print the number it will will not prompt the user to input another number. To fix this you should replace every break with a continue.\n+\n+\n+3.\n+a.   The following code is not valid for two reasons. The first reason is that in a for loop, an initialization statement is required to indicate the first value of that variable. This code does not have the initialization while it still does have the condition and the increment. The second ting that makes this code invalid is the fact that in the printf function, there is no variable specified after the %d, so the program will not know what to display. To fix this, you have to add a comma and whatever variable you want to display after the %d.","path":"Assignment.txt","position":14,"original_position":14,"commit_id":"e698b708b3d94f477b1fc745c674f1464d8ec212","original_commit_id":"e698b708b3d94f477b1fc745c674f1464d8ec212","user":{"login":"lesley2958","id":9807841,"avatar_url":"https://avatars.githubusercontent.com/u/9807841?v=3","gravatar_id":"","url":"https://api.github.com/users/lesley2958","html_url":"https://github.com/lesley2958","followers_url":"https://api.github.com/users/lesley2958/followers","following_url":"https://api.github.com/users/lesley2958/following{/other_user}","gists_url":"https://api.github.com/users/lesley2958/gists{/gist_id}","starred_url":"https://api.github.com/users/lesley2958/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lesley2958/subscriptions","organizations_url":"https://api.github.com/users/lesley2958/orgs","repos_url":"https://api.github.com/users/lesley2958/repos","events_url":"https://api.github.com/users/lesley2958/events{/privacy}","received_events_url":"https://api.github.com/users/lesley2958/received_events","type":"User","site_admin":false},"body":"right! but the (; i < 1,000; i*=2) syntax is actually correct if you declare and initialize it beforehand. ","created_at":"2016-07-25T18:46:26Z","updated_at":"2016-07-25T18:46:26Z","html_url":"https://github.com/CPRF-Session2/Assignment3/pull/5#discussion_r72121141","pull_request_url":"https://api.github.com/repos/CPRF-Session2/Assignment3/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/CPRF-Session2/Assignment3/pulls/comments/72121141"},"html":{"href":"https://github.com/CPRF-Session2/Assignment3/pull/5#discussion_r72121141"},"pull_request":{"href":"https://api.github.com/repos/CPRF-Session2/Assignment3/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/CPRF-Session2/Assignment3/pulls/5","id":78624704,"html_url":"https://github.com/CPRF-Session2/Assignment3/pull/5","diff_url":"https://github.com/CPRF-Session2/Assignment3/pull/5.diff","patch_url":"https://github.com/CPRF-Session2/Assignment3/pull/5.patch","issue_url":"https://api.github.com/repos/CPRF-Session2/Assignment3/issues/5","number":5,"state":"open","locked":false,"title":"Armstrong Park homework","user":{"login":"Armstrongpark","id":20544035,"avatar_url":"https://avatars.githubusercontent.com/u/20544035?v=3","gravatar_id":"","url":"https://api.github.com/users/Armstrongpark","html_url":"https://github.com/Armstrongpark","followers_url":"https://api.github.com/users/Armstrongpark/followers","following_url":"https://api.github.com/users/Armstrongpark/following{/other_user}","gists_url":"https://api.github.com/users/Armstrongpark/gists{/gist_id}","starred_url":"https://api.github.com/users/Armstrongpark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Armstrongpark/subscriptions","organizations_url":"https://api.github.com/users/Armstrongpark/orgs","repos_url":"https://api.github.com/users/Armstrongpark/repos","events_url":"https://api.github.com/users/Armstrongpark/events{/privacy}","received_events_url":"https://api.github.com/users/Armstrongpark/received_events","type":"User","site_admin":false},"body":"This is my homework, I didn't finish the posnums because there was an error that I couldn't solve","created_at":"2016-07-25T04:21:06Z","updated_at":"2016-07-25T18:46:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"11f3670e799098bd8ff0545dcd82cecf4fb9eff4","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/CPRF-Session2/Assignment3/pulls/5/commits","review_comments_url":"https://api.github.com/repos/CPRF-Session2/Assignment3/pulls/5/comments","review_comment_url":"https://api.github.com/repos/CPRF-Session2/Assignment3/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CPRF-Session2/Assignment3/issues/5/comments","statuses_url":"https://api.github.com/repos/CPRF-Session2/Assignment3/statuses/e698b708b3d94f477b1fc745c674f1464d8ec212","head":{"label":"Armstrongpark:master","ref":"master","sha":"e698b708b3d94f477b1fc745c674f1464d8ec212","user":{"login":"Armstrongpark","id":20544035,"avatar_url":"https://avatars.githubusercontent.com/u/20544035?v=3","gravatar_id":"","url":"https://api.github.com/users/Armstrongpark","html_url":"https://github.com/Armstrongpark","followers_url":"https://api.github.com/users/Armstrongpark/followers","following_url":"https://api.github.com/users/Armstrongpark/following{/other_user}","gists_url":"https://api.github.com/users/Armstrongpark/gists{/gist_id}","starred_url":"https://api.github.com/users/Armstrongpark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Armstrongpark/subscriptions","organizations_url":"https://api.github.com/users/Armstrongpark/orgs","repos_url":"https://api.github.com/users/Armstrongpark/repos","events_url":"https://api.github.com/users/Armstrongpark/events{/privacy}","received_events_url":"https://api.github.com/users/Armstrongpark/received_events","type":"User","site_admin":false},"repo":{"id":64074619,"name":"Assignment3","full_name":"Armstrongpark/Assignment3","owner":{"login":"Armstrongpark","id":20544035,"avatar_url":"https://avatars.githubusercontent.com/u/20544035?v=3","gravatar_id":"","url":"https://api.github.com/users/Armstrongpark","html_url":"https://github.com/Armstrongpark","followers_url":"https://api.github.com/users/Armstrongpark/followers","following_url":"https://api.github.com/users/Armstrongpark/following{/other_user}","gists_url":"https://api.github.com/users/Armstrongpark/gists{/gist_id}","starred_url":"https://api.github.com/users/Armstrongpark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Armstrongpark/subscriptions","organizations_url":"https://api.github.com/users/Armstrongpark/orgs","repos_url":"https://api.github.com/users/Armstrongpark/repos","events_url":"https://api.github.com/users/Armstrongpark/events{/privacy}","received_events_url":"https://api.github.com/users/Armstrongpark/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Armstrongpark/Assignment3","description":null,"fork":true,"url":"https://api.github.com/repos/Armstrongpark/Assignment3","forks_url":"https://api.github.com/repos/Armstrongpark/Assignment3/forks","keys_url":"https://api.github.com/repos/Armstrongpark/Assignment3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Armstrongpark/Assignment3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Armstrongpark/Assignment3/teams","hooks_url":"https://api.github.com/repos/Armstrongpark/Assignment3/hooks","issue_events_url":"https://api.github.com/repos/Armstrongpark/Assignment3/issues/events{/number}","events_url":"https://api.github.com/repos/Armstrongpark/Assignment3/events","assignees_url":"https://api.github.com/repos/Armstrongpark/Assignment3/assignees{/user}","branches_url":"https://api.github.com/repos/Armstrongpark/Assignment3/branches{/branch}","tags_url":"https://api.github.com/repos/Armstrongpark/Assignment3/tags","blobs_url":"https://api.github.com/repos/Armstrongpark/Assignment3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Armstrongpark/Assignment3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Armstrongpark/Assignment3/git/refs{/sha}","trees_url":"https://api.github.com/repos/Armstrongpark/Assignment3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Armstrongpark/Assignment3/statuses/{sha}","languages_url":"https://api.github.com/repos/Armstrongpark/Assignment3/languages","stargazers_url":"https://api.github.com/repos/Armstrongpark/Assignment3/stargazers","contributors_url":"https://api.github.com/repos/Armstrongpark/Assignment3/contributors","subscribers_url":"https://api.github.com/repos/Armstrongpark/Assignment3/subscribers","subscription_url":"https://api.github.com/repos/Armstrongpark/Assignment3/subscription","commits_url":"https://api.github.com/repos/Armstrongpark/Assignment3/commits{/sha}","git_commits_url":"https://api.github.com/repos/Armstrongpark/Assignment3/git/commits{/sha}","comments_url":"https://api.github.com/repos/Armstrongpark/Assignment3/comments{/number}","issue_comment_url":"https://api.github.com/repos/Armstrongpark/Assignment3/issues/comments{/number}","contents_url":"https://api.github.com/repos/Armstrongpark/Assignment3/contents/{+path}","compare_url":"https://api.github.com/repos/Armstrongpark/Assignment3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Armstrongpark/Assignment3/merges","archive_url":"https://api.github.com/repos/Armstrongpark/Assignment3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Armstrongpark/Assignment3/downloads","issues_url":"https://api.github.com/repos/Armstrongpark/Assignment3/issues{/number}","pulls_url":"https://api.github.com/repos/Armstrongpark/Assignment3/pulls{/number}","milestones_url":"https://api.github.com/repos/Armstrongpark/Assignment3/milestones{/number}","notifications_url":"https://api.github.com/repos/Armstrongpark/Assignment3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Armstrongpark/Assignment3/labels{/name}","releases_url":"https://api.github.com/repos/Armstrongpark/Assignment3/releases{/id}","deployments_url":"https://api.github.com/repos/Armstrongpark/Assignment3/deployments","created_at":"2016-07-24T16:24:42Z","updated_at":"2016-07-25T04:19:44Z","pushed_at":"2016-07-25T04:22:31Z","git_url":"git://github.com/Armstrongpark/Assignment3.git","ssh_url":"git@github.com:Armstrongpark/Assignment3.git","clone_url":"https://github.com/Armstrongpark/Assignment3.git","svn_url":"https://github.com/Armstrongpark/Assignment3","homepage":null,"size":3,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"CPRF-Session2:master","ref":"master","sha":"1ad56d5d3078f7cabeab4c66b75e663e18e02f59","user":{"login":"CPRF-Session2","id":20541204,"avatar_url":"https://avatars.githubusercontent.com/u/20541204?v=3","gravatar_id":"","url":"https://api.github.com/users/CPRF-Session2","html_url":"https://github.com/CPRF-Session2","followers_url":"https://api.github.com/users/CPRF-Session2/followers","following_url":"https://api.github.com/users/CPRF-Session2/following{/other_user}","gists_url":"https://api.github.com/users/CPRF-Session2/gists{/gist_id}","starred_url":"https://api.github.com/users/CPRF-Session2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CPRF-Session2/subscriptions","organizations_url":"https://api.github.com/users/CPRF-Session2/orgs","repos_url":"https://api.github.com/users/CPRF-Session2/repos","events_url":"https://api.github.com/users/CPRF-Session2/events{/privacy}","received_events_url":"https://api.github.com/users/CPRF-Session2/received_events","type":"Organization","site_admin":false},"repo":{"id":63908987,"name":"Assignment3","full_name":"CPRF-Session2/Assignment3","owner":{"login":"CPRF-Session2","id":20541204,"avatar_url":"https://avatars.githubusercontent.com/u/20541204?v=3","gravatar_id":"","url":"https://api.github.com/users/CPRF-Session2","html_url":"https://github.com/CPRF-Session2","followers_url":"https://api.github.com/users/CPRF-Session2/followers","following_url":"https://api.github.com/users/CPRF-Session2/following{/other_user}","gists_url":"https://api.github.com/users/CPRF-Session2/gists{/gist_id}","starred_url":"https://api.github.com/users/CPRF-Session2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CPRF-Session2/subscriptions","organizations_url":"https://api.github.com/users/CPRF-Session2/orgs","repos_url":"https://api.github.com/users/CPRF-Session2/repos","events_url":"https://api.github.com/users/CPRF-Session2/events{/privacy}","received_events_url":"https://api.github.com/users/CPRF-Session2/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CPRF-Session2/Assignment3","description":null,"fork":false,"url":"https://api.github.com/repos/CPRF-Session2/Assignment3","forks_url":"https://api.github.com/repos/CPRF-Session2/Assignment3/forks","keys_url":"https://api.github.com/repos/CPRF-Session2/Assignment3/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CPRF-Session2/Assignment3/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CPRF-Session2/Assignment3/teams","hooks_url":"https://api.github.com/repos/CPRF-Session2/Assignment3/hooks","issue_events_url":"https://api.github.com/repos/CPRF-Session2/Assignment3/issues/events{/number}","events_url":"https://api.github.com/repos/CPRF-Session2/Assignment3/events","assignees_url":"https://api.github.com/repos/CPRF-Session2/Assignment3/assignees{/user}","branches_url":"https://api.github.com/repos/CPRF-Session2/Assignment3/branches{/branch}","tags_url":"https://api.github.com/repos/CPRF-Session2/Assignment3/tags","blobs_url":"https://api.github.com/repos/CPRF-Session2/Assignment3/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CPRF-Session2/Assignment3/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CPRF-Session2/Assignment3/git/refs{/sha}","trees_url":"https://api.github.com/repos/CPRF-Session2/Assignment3/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CPRF-Session2/Assignment3/statuses/{sha}","languages_url":"https://api.github.com/repos/CPRF-Session2/Assignment3/languages","stargazers_url":"https://api.github.com/repos/CPRF-Session2/Assignment3/stargazers","contributors_url":"https://api.github.com/repos/CPRF-Session2/Assignment3/contributors","subscribers_url":"https://api.github.com/repos/CPRF-Session2/Assignment3/subscribers","subscription_url":"https://api.github.com/repos/CPRF-Session2/Assignment3/subscription","commits_url":"https://api.github.com/repos/CPRF-Session2/Assignment3/commits{/sha}","git_commits_url":"https://api.github.com/repos/CPRF-Session2/Assignment3/git/commits{/sha}","comments_url":"https://api.github.com/repos/CPRF-Session2/Assignment3/comments{/number}","issue_comment_url":"https://api.github.com/repos/CPRF-Session2/Assignment3/issues/comments{/number}","contents_url":"https://api.github.com/repos/CPRF-Session2/Assignment3/contents/{+path}","compare_url":"https://api.github.com/repos/CPRF-Session2/Assignment3/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CPRF-Session2/Assignment3/merges","archive_url":"https://api.github.com/repos/CPRF-Session2/Assignment3/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CPRF-Session2/Assignment3/downloads","issues_url":"https://api.github.com/repos/CPRF-Session2/Assignment3/issues{/number}","pulls_url":"https://api.github.com/repos/CPRF-Session2/Assignment3/pulls{/number}","milestones_url":"https://api.github.com/repos/CPRF-Session2/Assignment3/milestones{/number}","notifications_url":"https://api.github.com/repos/CPRF-Session2/Assignment3/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CPRF-Session2/Assignment3/labels{/name}","releases_url":"https://api.github.com/repos/CPRF-Session2/Assignment3/releases{/id}","deployments_url":"https://api.github.com/repos/CPRF-Session2/Assignment3/deployments","created_at":"2016-07-21T23:33:59Z","updated_at":"2016-07-25T14:07:54Z","pushed_at":"2016-07-25T15:27:46Z","git_url":"git://github.com/CPRF-Session2/Assignment3.git","ssh_url":"git@github.com:CPRF-Session2/Assignment3.git","clone_url":"https://github.com/CPRF-Session2/Assignment3.git","svn_url":"https://github.com/CPRF-Session2/Assignment3","homepage":null,"size":2,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":9,"forks":15,"open_issues":9,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CPRF-Session2/Assignment3/pulls/5"},"html":{"href":"https://github.com/CPRF-Session2/Assignment3/pull/5"},"issue":{"href":"https://api.github.com/repos/CPRF-Session2/Assignment3/issues/5"},"comments":{"href":"https://api.github.com/repos/CPRF-Session2/Assignment3/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/CPRF-Session2/Assignment3/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/CPRF-Session2/Assignment3/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CPRF-Session2/Assignment3/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/CPRF-Session2/Assignment3/statuses/e698b708b3d94f477b1fc745c674f1464d8ec212"}}}}
{"actor":{"display_login":"lesley2958"}}