{"action":"created","comment":{"url":"https://api.github.com/repos/karzhouAndrew/JavaRepository/pulls/comments/32396404","id":32396404,"diff_hunk":"@@ -0,0 +1,21 @@\n+/**\n+ * Изменить  пример  с  суммой  чисел  таким  образом,  чтобы\n+ * рассчитывалась не сумма, а произведение, т.е. факто\n+ * риал числа.\n+ */\n+\n+import java.util.Scanner;\n+\n+public class Factorial {\n+    public static void main(String[] args) {\n+        Scanner in = new Scanner(System.in);\n+        System.out.printf(\"enter the value \");\n+        int value = in.nextInt();\n+        long factorial = 1;\n+        for (int i = 1; i <= value; i++) {\n+            factorial *= i;\n+        }\n+        System.out.println(factorial);\n+        in.close();","path":"yanusik/src/Factorial.java","position":19,"original_position":19,"commit_id":"c8731e2ea3667faf19c6fe1e18efa224f1ac9ec4","original_commit_id":"c8731e2ea3667faf19c6fe1e18efa224f1ac9ec4","user":{"login":"karzhouAndrew","id":9786654,"avatar_url":"https://avatars.githubusercontent.com/u/9786654?v=3","gravatar_id":"","url":"https://api.github.com/users/karzhouAndrew","html_url":"https://github.com/karzhouAndrew","followers_url":"https://api.github.com/users/karzhouAndrew/followers","following_url":"https://api.github.com/users/karzhouAndrew/following{/other_user}","gists_url":"https://api.github.com/users/karzhouAndrew/gists{/gist_id}","starred_url":"https://api.github.com/users/karzhouAndrew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karzhouAndrew/subscriptions","organizations_url":"https://api.github.com/users/karzhouAndrew/orgs","repos_url":"https://api.github.com/users/karzhouAndrew/repos","events_url":"https://api.github.com/users/karzhouAndrew/events{/privacy}","received_events_url":"https://api.github.com/users/karzhouAndrew/received_events","type":"User","site_admin":false},"body":"тоже самое про сканер","created_at":"2015-06-15T07:26:13Z","updated_at":"2015-06-15T07:26:13Z","html_url":"https://github.com/karzhouAndrew/JavaRepository/pull/951#discussion_r32396404","pull_request_url":"https://api.github.com/repos/karzhouAndrew/JavaRepository/pulls/951","_links":{"self":{"href":"https://api.github.com/repos/karzhouAndrew/JavaRepository/pulls/comments/32396404"},"html":{"href":"https://github.com/karzhouAndrew/JavaRepository/pull/951#discussion_r32396404"},"pull_request":{"href":"https://api.github.com/repos/karzhouAndrew/JavaRepository/pulls/951"}}},"pull_request":{"url":"https://api.github.com/repos/karzhouAndrew/JavaRepository/pulls/951","id":37650855,"html_url":"https://github.com/karzhouAndrew/JavaRepository/pull/951","diff_url":"https://github.com/karzhouAndrew/JavaRepository/pull/951.diff","patch_url":"https://github.com/karzhouAndrew/JavaRepository/pull/951.patch","issue_url":"https://api.github.com/repos/karzhouAndrew/JavaRepository/issues/951","number":951,"state":"open","locked":false,"title":"lab8","user":{"login":"shadow5551","id":12188465,"avatar_url":"https://avatars.githubusercontent.com/u/12188465?v=3","gravatar_id":"","url":"https://api.github.com/users/shadow5551","html_url":"https://github.com/shadow5551","followers_url":"https://api.github.com/users/shadow5551/followers","following_url":"https://api.github.com/users/shadow5551/following{/other_user}","gists_url":"https://api.github.com/users/shadow5551/gists{/gist_id}","starred_url":"https://api.github.com/users/shadow5551/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shadow5551/subscriptions","organizations_url":"https://api.github.com/users/shadow5551/orgs","repos_url":"https://api.github.com/users/shadow5551/repos","events_url":"https://api.github.com/users/shadow5551/events{/privacy}","received_events_url":"https://api.github.com/users/shadow5551/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-06-14T23:40:36Z","updated_at":"2015-06-15T07:26:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3c7fc9263a5403bbac0db93e725b719695aeea54","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/karzhouAndrew/JavaRepository/pulls/951/commits","review_comments_url":"https://api.github.com/repos/karzhouAndrew/JavaRepository/pulls/951/comments","review_comment_url":"https://api.github.com/repos/karzhouAndrew/JavaRepository/pulls/comments{/number}","comments_url":"https://api.github.com/repos/karzhouAndrew/JavaRepository/issues/951/comments","statuses_url":"https://api.github.com/repos/karzhouAndrew/JavaRepository/statuses/c8731e2ea3667faf19c6fe1e18efa224f1ac9ec4","head":{"label":"shadow5551:lab8","ref":"lab8","sha":"c8731e2ea3667faf19c6fe1e18efa224f1ac9ec4","user":{"login":"shadow5551","id":12188465,"avatar_url":"https://avatars.githubusercontent.com/u/12188465?v=3","gravatar_id":"","url":"https://api.github.com/users/shadow5551","html_url":"https://github.com/shadow5551","followers_url":"https://api.github.com/users/shadow5551/followers","following_url":"https://api.github.com/users/shadow5551/following{/other_user}","gists_url":"https://api.github.com/users/shadow5551/gists{/gist_id}","starred_url":"https://api.github.com/users/shadow5551/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shadow5551/subscriptions","organizations_url":"https://api.github.com/users/shadow5551/orgs","repos_url":"https://api.github.com/users/shadow5551/repos","events_url":"https://api.github.com/users/shadow5551/events{/privacy}","received_events_url":"https://api.github.com/users/shadow5551/received_events","type":"User","site_admin":false},"repo":{"id":34865910,"name":"JavaRepository","full_name":"shadow5551/JavaRepository","owner":{"login":"shadow5551","id":12188465,"avatar_url":"https://avatars.githubusercontent.com/u/12188465?v=3","gravatar_id":"","url":"https://api.github.com/users/shadow5551","html_url":"https://github.com/shadow5551","followers_url":"https://api.github.com/users/shadow5551/followers","following_url":"https://api.github.com/users/shadow5551/following{/other_user}","gists_url":"https://api.github.com/users/shadow5551/gists{/gist_id}","starred_url":"https://api.github.com/users/shadow5551/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shadow5551/subscriptions","organizations_url":"https://api.github.com/users/shadow5551/orgs","repos_url":"https://api.github.com/users/shadow5551/repos","events_url":"https://api.github.com/users/shadow5551/events{/privacy}","received_events_url":"https://api.github.com/users/shadow5551/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/shadow5551/JavaRepository","description":"","fork":true,"url":"https://api.github.com/repos/shadow5551/JavaRepository","forks_url":"https://api.github.com/repos/shadow5551/JavaRepository/forks","keys_url":"https://api.github.com/repos/shadow5551/JavaRepository/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shadow5551/JavaRepository/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shadow5551/JavaRepository/teams","hooks_url":"https://api.github.com/repos/shadow5551/JavaRepository/hooks","issue_events_url":"https://api.github.com/repos/shadow5551/JavaRepository/issues/events{/number}","events_url":"https://api.github.com/repos/shadow5551/JavaRepository/events","assignees_url":"https://api.github.com/repos/shadow5551/JavaRepository/assignees{/user}","branches_url":"https://api.github.com/repos/shadow5551/JavaRepository/branches{/branch}","tags_url":"https://api.github.com/repos/shadow5551/JavaRepository/tags","blobs_url":"https://api.github.com/repos/shadow5551/JavaRepository/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shadow5551/JavaRepository/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shadow5551/JavaRepository/git/refs{/sha}","trees_url":"https://api.github.com/repos/shadow5551/JavaRepository/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shadow5551/JavaRepository/statuses/{sha}","languages_url":"https://api.github.com/repos/shadow5551/JavaRepository/languages","stargazers_url":"https://api.github.com/repos/shadow5551/JavaRepository/stargazers","contributors_url":"https://api.github.com/repos/shadow5551/JavaRepository/contributors","subscribers_url":"https://api.github.com/repos/shadow5551/JavaRepository/subscribers","subscription_url":"https://api.github.com/repos/shadow5551/JavaRepository/subscription","commits_url":"https://api.github.com/repos/shadow5551/JavaRepository/commits{/sha}","git_commits_url":"https://api.github.com/repos/shadow5551/JavaRepository/git/commits{/sha}","comments_url":"https://api.github.com/repos/shadow5551/JavaRepository/comments{/number}","issue_comment_url":"https://api.github.com/repos/shadow5551/JavaRepository/issues/comments{/number}","contents_url":"https://api.github.com/repos/shadow5551/JavaRepository/contents/{+path}","compare_url":"https://api.github.com/repos/shadow5551/JavaRepository/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shadow5551/JavaRepository/merges","archive_url":"https://api.github.com/repos/shadow5551/JavaRepository/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shadow5551/JavaRepository/downloads","issues_url":"https://api.github.com/repos/shadow5551/JavaRepository/issues{/number}","pulls_url":"https://api.github.com/repos/shadow5551/JavaRepository/pulls{/number}","milestones_url":"https://api.github.com/repos/shadow5551/JavaRepository/milestones{/number}","notifications_url":"https://api.github.com/repos/shadow5551/JavaRepository/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shadow5551/JavaRepository/labels{/name}","releases_url":"https://api.github.com/repos/shadow5551/JavaRepository/releases{/id}","created_at":"2015-04-30T16:53:18Z","updated_at":"2015-06-05T21:47:07Z","pushed_at":"2015-06-15T00:24:09Z","git_url":"git://github.com/shadow5551/JavaRepository.git","ssh_url":"git@github.com:shadow5551/JavaRepository.git","clone_url":"https://github.com/shadow5551/JavaRepository.git","svn_url":"https://github.com/shadow5551/JavaRepository","homepage":null,"size":309,"stargazers_count":0,"watchers_count":0,"language":null,"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":"karzhouAndrew:master","ref":"master","sha":"6e22ad29f1a439555eb797a698eb13bb377a9229","user":{"login":"karzhouAndrew","id":9786654,"avatar_url":"https://avatars.githubusercontent.com/u/9786654?v=3","gravatar_id":"","url":"https://api.github.com/users/karzhouAndrew","html_url":"https://github.com/karzhouAndrew","followers_url":"https://api.github.com/users/karzhouAndrew/followers","following_url":"https://api.github.com/users/karzhouAndrew/following{/other_user}","gists_url":"https://api.github.com/users/karzhouAndrew/gists{/gist_id}","starred_url":"https://api.github.com/users/karzhouAndrew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karzhouAndrew/subscriptions","organizations_url":"https://api.github.com/users/karzhouAndrew/orgs","repos_url":"https://api.github.com/users/karzhouAndrew/repos","events_url":"https://api.github.com/users/karzhouAndrew/events{/privacy}","received_events_url":"https://api.github.com/users/karzhouAndrew/received_events","type":"User","site_admin":false},"repo":{"id":34864695,"name":"JavaRepository","full_name":"karzhouAndrew/JavaRepository","owner":{"login":"karzhouAndrew","id":9786654,"avatar_url":"https://avatars.githubusercontent.com/u/9786654?v=3","gravatar_id":"","url":"https://api.github.com/users/karzhouAndrew","html_url":"https://github.com/karzhouAndrew","followers_url":"https://api.github.com/users/karzhouAndrew/followers","following_url":"https://api.github.com/users/karzhouAndrew/following{/other_user}","gists_url":"https://api.github.com/users/karzhouAndrew/gists{/gist_id}","starred_url":"https://api.github.com/users/karzhouAndrew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karzhouAndrew/subscriptions","organizations_url":"https://api.github.com/users/karzhouAndrew/orgs","repos_url":"https://api.github.com/users/karzhouAndrew/repos","events_url":"https://api.github.com/users/karzhouAndrew/events{/privacy}","received_events_url":"https://api.github.com/users/karzhouAndrew/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/karzhouAndrew/JavaRepository","description":"","fork":false,"url":"https://api.github.com/repos/karzhouAndrew/JavaRepository","forks_url":"https://api.github.com/repos/karzhouAndrew/JavaRepository/forks","keys_url":"https://api.github.com/repos/karzhouAndrew/JavaRepository/keys{/key_id}","collaborators_url":"https://api.github.com/repos/karzhouAndrew/JavaRepository/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/karzhouAndrew/JavaRepository/teams","hooks_url":"https://api.github.com/repos/karzhouAndrew/JavaRepository/hooks","issue_events_url":"https://api.github.com/repos/karzhouAndrew/JavaRepository/issues/events{/number}","events_url":"https://api.github.com/repos/karzhouAndrew/JavaRepository/events","assignees_url":"https://api.github.com/repos/karzhouAndrew/JavaRepository/assignees{/user}","branches_url":"https://api.github.com/repos/karzhouAndrew/JavaRepository/branches{/branch}","tags_url":"https://api.github.com/repos/karzhouAndrew/JavaRepository/tags","blobs_url":"https://api.github.com/repos/karzhouAndrew/JavaRepository/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/karzhouAndrew/JavaRepository/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/karzhouAndrew/JavaRepository/git/refs{/sha}","trees_url":"https://api.github.com/repos/karzhouAndrew/JavaRepository/git/trees{/sha}","statuses_url":"https://api.github.com/repos/karzhouAndrew/JavaRepository/statuses/{sha}","languages_url":"https://api.github.com/repos/karzhouAndrew/JavaRepository/languages","stargazers_url":"https://api.github.com/repos/karzhouAndrew/JavaRepository/stargazers","contributors_url":"https://api.github.com/repos/karzhouAndrew/JavaRepository/contributors","subscribers_url":"https://api.github.com/repos/karzhouAndrew/JavaRepository/subscribers","subscription_url":"https://api.github.com/repos/karzhouAndrew/JavaRepository/subscription","commits_url":"https://api.github.com/repos/karzhouAndrew/JavaRepository/commits{/sha}","git_commits_url":"https://api.github.com/repos/karzhouAndrew/JavaRepository/git/commits{/sha}","comments_url":"https://api.github.com/repos/karzhouAndrew/JavaRepository/comments{/number}","issue_comment_url":"https://api.github.com/repos/karzhouAndrew/JavaRepository/issues/comments{/number}","contents_url":"https://api.github.com/repos/karzhouAndrew/JavaRepository/contents/{+path}","compare_url":"https://api.github.com/repos/karzhouAndrew/JavaRepository/compare/{base}...{head}","merges_url":"https://api.github.com/repos/karzhouAndrew/JavaRepository/merges","archive_url":"https://api.github.com/repos/karzhouAndrew/JavaRepository/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/karzhouAndrew/JavaRepository/downloads","issues_url":"https://api.github.com/repos/karzhouAndrew/JavaRepository/issues{/number}","pulls_url":"https://api.github.com/repos/karzhouAndrew/JavaRepository/pulls{/number}","milestones_url":"https://api.github.com/repos/karzhouAndrew/JavaRepository/milestones{/number}","notifications_url":"https://api.github.com/repos/karzhouAndrew/JavaRepository/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/karzhouAndrew/JavaRepository/labels{/name}","releases_url":"https://api.github.com/repos/karzhouAndrew/JavaRepository/releases{/id}","created_at":"2015-04-30T16:28:23Z","updated_at":"2015-05-07T07:51:37Z","pushed_at":"2015-06-15T07:24:23Z","git_url":"git://github.com/karzhouAndrew/JavaRepository.git","ssh_url":"git@github.com:karzhouAndrew/JavaRepository.git","clone_url":"https://github.com/karzhouAndrew/JavaRepository.git","svn_url":"https://github.com/karzhouAndrew/JavaRepository","homepage":null,"size":5966,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":22,"mirror_url":null,"open_issues_count":129,"forks":22,"open_issues":129,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/karzhouAndrew/JavaRepository/pulls/951"},"html":{"href":"https://github.com/karzhouAndrew/JavaRepository/pull/951"},"issue":{"href":"https://api.github.com/repos/karzhouAndrew/JavaRepository/issues/951"},"comments":{"href":"https://api.github.com/repos/karzhouAndrew/JavaRepository/issues/951/comments"},"review_comments":{"href":"https://api.github.com/repos/karzhouAndrew/JavaRepository/pulls/951/comments"},"review_comment":{"href":"https://api.github.com/repos/karzhouAndrew/JavaRepository/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/karzhouAndrew/JavaRepository/pulls/951/commits"},"statuses":{"href":"https://api.github.com/repos/karzhouAndrew/JavaRepository/statuses/c8731e2ea3667faf19c6fe1e18efa224f1ac9ec4"}}}}