{"action":"created","comment":{"url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/pulls/comments/82816285","pull_request_review_id":3696883,"id":82816285,"diff_hunk":"@@ -57,37 +60,74 @@ fun digitCountInNumber(n: Int, m: Int): Int =\n  * Найти количество цифр в заданном числе n.\n  * Например, число 1 содержит 1 цифру, 456 -- 3 цифры, 65536 -- 5 цифр.\n  */\n-fun digitNumber(n: Int): Int = TODO()\n+fun digitNumber(n: Int): Int {\n+    var numberSum = 0\n+    var numberNew = n\n+    do {\n+        numberNew /= 10\n+        numberSum++\n+    } while (numberNew != 0)\n+    return numberSum\n+}\n+\n \n /**\n  * Простая\n  *\n  * Найти число Фибоначчи из ряда 1, 1, 2, 3, 5, 8, 13, 21, ... с номером n.\n  * Ряд Фибоначчи определён следующим образом: fib(1) = 1, fib(2) = 1, fib(n+2) = fib(n) + fib(n+1)\n  */\n-fun fib(n: Int): Int = TODO()\n+fun fib(n: Int): Int = if (n > 2) (fib(n - 1) + fib(n - 2)) else 1\n+\n \n /**\n  * Простая\n  *\n  * Для заданных чисел m и n найти наименьшее общее кратное, то есть,\n  * минимальное число k, которое делится и на m и на n без остатка\n  */\n-fun lcm(m: Int, n: Int): Int = TODO()\n+fun lcm(m: Int, n: Int): Int {\n+    var k = m * n\n+    for (i in (if (m >= n) m else n)..m * n) {\n+        if (i % m == 0 && i % n == 0) {\n+            k = i","path":"src/lesson3/task1/Loop.kt","position":56,"original_position":56,"commit_id":"54f3f4a1619d013be2e2e8bc36da0f97f9496da1","original_commit_id":"54f3f4a1619d013be2e2e8bc36da0f97f9496da1","user":{"login":"ice-phoenix","id":1929610,"avatar_url":"https://avatars.githubusercontent.com/u/1929610?v=3","gravatar_id":"","url":"https://api.github.com/users/ice-phoenix","html_url":"https://github.com/ice-phoenix","followers_url":"https://api.github.com/users/ice-phoenix/followers","following_url":"https://api.github.com/users/ice-phoenix/following{/other_user}","gists_url":"https://api.github.com/users/ice-phoenix/gists{/gist_id}","starred_url":"https://api.github.com/users/ice-phoenix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ice-phoenix/subscriptions","organizations_url":"https://api.github.com/users/ice-phoenix/orgs","repos_url":"https://api.github.com/users/ice-phoenix/repos","events_url":"https://api.github.com/users/ice-phoenix/events{/privacy}","received_events_url":"https://api.github.com/users/ice-phoenix/received_events","type":"User","site_admin":false},"body":"Можно обойтись без переменной `k`","created_at":"2016-10-11T15:14:32Z","updated_at":"2016-10-11T15:14:32Z","html_url":"https://github.com/Kotlin-Polytech/KotlinAsFirst2016/pull/98#discussion_r82816285","pull_request_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/pulls/98","_links":{"self":{"href":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/pulls/comments/82816285"},"html":{"href":"https://github.com/Kotlin-Polytech/KotlinAsFirst2016/pull/98#discussion_r82816285"},"pull_request":{"href":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/pulls/98"}}},"pull_request":{"url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/pulls/98","id":86301738,"html_url":"https://github.com/Kotlin-Polytech/KotlinAsFirst2016/pull/98","diff_url":"https://github.com/Kotlin-Polytech/KotlinAsFirst2016/pull/98.diff","patch_url":"https://github.com/Kotlin-Polytech/KotlinAsFirst2016/pull/98.patch","issue_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/issues/98","number":98,"state":"open","locked":false,"title":"Lesson 1,2,3 and 4(several tasks) are done.","user":{"login":"AlexanderKuptsov","id":22057988,"avatar_url":"https://avatars.githubusercontent.com/u/22057988?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexanderKuptsov","html_url":"https://github.com/AlexanderKuptsov","followers_url":"https://api.github.com/users/AlexanderKuptsov/followers","following_url":"https://api.github.com/users/AlexanderKuptsov/following{/other_user}","gists_url":"https://api.github.com/users/AlexanderKuptsov/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexanderKuptsov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexanderKuptsov/subscriptions","organizations_url":"https://api.github.com/users/AlexanderKuptsov/orgs","repos_url":"https://api.github.com/users/AlexanderKuptsov/repos","events_url":"https://api.github.com/users/AlexanderKuptsov/events{/privacy}","received_events_url":"https://api.github.com/users/AlexanderKuptsov/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-09-22T09:10:25Z","updated_at":"2016-10-11T15:20:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4fa604ba62022cd8892e72ca981e42e869b22a12","assignee":{"login":"ice-phoenix","id":1929610,"avatar_url":"https://avatars.githubusercontent.com/u/1929610?v=3","gravatar_id":"","url":"https://api.github.com/users/ice-phoenix","html_url":"https://github.com/ice-phoenix","followers_url":"https://api.github.com/users/ice-phoenix/followers","following_url":"https://api.github.com/users/ice-phoenix/following{/other_user}","gists_url":"https://api.github.com/users/ice-phoenix/gists{/gist_id}","starred_url":"https://api.github.com/users/ice-phoenix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ice-phoenix/subscriptions","organizations_url":"https://api.github.com/users/ice-phoenix/orgs","repos_url":"https://api.github.com/users/ice-phoenix/repos","events_url":"https://api.github.com/users/ice-phoenix/events{/privacy}","received_events_url":"https://api.github.com/users/ice-phoenix/received_events","type":"User","site_admin":false},"assignees":[{"login":"ice-phoenix","id":1929610,"avatar_url":"https://avatars.githubusercontent.com/u/1929610?v=3","gravatar_id":"","url":"https://api.github.com/users/ice-phoenix","html_url":"https://github.com/ice-phoenix","followers_url":"https://api.github.com/users/ice-phoenix/followers","following_url":"https://api.github.com/users/ice-phoenix/following{/other_user}","gists_url":"https://api.github.com/users/ice-phoenix/gists{/gist_id}","starred_url":"https://api.github.com/users/ice-phoenix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ice-phoenix/subscriptions","organizations_url":"https://api.github.com/users/ice-phoenix/orgs","repos_url":"https://api.github.com/users/ice-phoenix/repos","events_url":"https://api.github.com/users/ice-phoenix/events{/privacy}","received_events_url":"https://api.github.com/users/ice-phoenix/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/pulls/98/commits","review_comments_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/pulls/98/comments","review_comment_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/issues/98/comments","statuses_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/statuses/54f3f4a1619d013be2e2e8bc36da0f97f9496da1","head":{"label":"AlexanderKuptsov:master","ref":"master","sha":"54f3f4a1619d013be2e2e8bc36da0f97f9496da1","user":{"login":"AlexanderKuptsov","id":22057988,"avatar_url":"https://avatars.githubusercontent.com/u/22057988?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexanderKuptsov","html_url":"https://github.com/AlexanderKuptsov","followers_url":"https://api.github.com/users/AlexanderKuptsov/followers","following_url":"https://api.github.com/users/AlexanderKuptsov/following{/other_user}","gists_url":"https://api.github.com/users/AlexanderKuptsov/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexanderKuptsov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexanderKuptsov/subscriptions","organizations_url":"https://api.github.com/users/AlexanderKuptsov/orgs","repos_url":"https://api.github.com/users/AlexanderKuptsov/repos","events_url":"https://api.github.com/users/AlexanderKuptsov/events{/privacy}","received_events_url":"https://api.github.com/users/AlexanderKuptsov/received_events","type":"User","site_admin":false},"repo":{"id":67636281,"name":"KotlinAsFirst2016","full_name":"AlexanderKuptsov/KotlinAsFirst2016","owner":{"login":"AlexanderKuptsov","id":22057988,"avatar_url":"https://avatars.githubusercontent.com/u/22057988?v=3","gravatar_id":"","url":"https://api.github.com/users/AlexanderKuptsov","html_url":"https://github.com/AlexanderKuptsov","followers_url":"https://api.github.com/users/AlexanderKuptsov/followers","following_url":"https://api.github.com/users/AlexanderKuptsov/following{/other_user}","gists_url":"https://api.github.com/users/AlexanderKuptsov/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexanderKuptsov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexanderKuptsov/subscriptions","organizations_url":"https://api.github.com/users/AlexanderKuptsov/orgs","repos_url":"https://api.github.com/users/AlexanderKuptsov/repos","events_url":"https://api.github.com/users/AlexanderKuptsov/events{/privacy}","received_events_url":"https://api.github.com/users/AlexanderKuptsov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/AlexanderKuptsov/KotlinAsFirst2016","description":null,"fork":true,"url":"https://api.github.com/repos/AlexanderKuptsov/KotlinAsFirst2016","forks_url":"https://api.github.com/repos/AlexanderKuptsov/KotlinAsFirst2016/forks","keys_url":"https://api.github.com/repos/AlexanderKuptsov/KotlinAsFirst2016/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AlexanderKuptsov/KotlinAsFirst2016/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AlexanderKuptsov/KotlinAsFirst2016/teams","hooks_url":"https://api.github.com/repos/AlexanderKuptsov/KotlinAsFirst2016/hooks","issue_events_url":"https://api.github.com/repos/AlexanderKuptsov/KotlinAsFirst2016/issues/events{/number}","events_url":"https://api.github.com/repos/AlexanderKuptsov/KotlinAsFirst2016/events","assignees_url":"https://api.github.com/repos/AlexanderKuptsov/KotlinAsFirst2016/assignees{/user}","branches_url":"https://api.github.com/repos/AlexanderKuptsov/KotlinAsFirst2016/branches{/branch}","tags_url":"https://api.github.com/repos/AlexanderKuptsov/KotlinAsFirst2016/tags","blobs_url":"https://api.github.com/repos/AlexanderKuptsov/KotlinAsFirst2016/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AlexanderKuptsov/KotlinAsFirst2016/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AlexanderKuptsov/KotlinAsFirst2016/git/refs{/sha}","trees_url":"https://api.github.com/repos/AlexanderKuptsov/KotlinAsFirst2016/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AlexanderKuptsov/KotlinAsFirst2016/statuses/{sha}","languages_url":"https://api.github.com/repos/AlexanderKuptsov/KotlinAsFirst2016/languages","stargazers_url":"https://api.github.com/repos/AlexanderKuptsov/KotlinAsFirst2016/stargazers","contributors_url":"https://api.github.com/repos/AlexanderKuptsov/KotlinAsFirst2016/contributors","subscribers_url":"https://api.github.com/repos/AlexanderKuptsov/KotlinAsFirst2016/subscribers","subscription_url":"https://api.github.com/repos/AlexanderKuptsov/KotlinAsFirst2016/subscription","commits_url":"https://api.github.com/repos/AlexanderKuptsov/KotlinAsFirst2016/commits{/sha}","git_commits_url":"https://api.github.com/repos/AlexanderKuptsov/KotlinAsFirst2016/git/commits{/sha}","comments_url":"https://api.github.com/repos/AlexanderKuptsov/KotlinAsFirst2016/comments{/number}","issue_comment_url":"https://api.github.com/repos/AlexanderKuptsov/KotlinAsFirst2016/issues/comments{/number}","contents_url":"https://api.github.com/repos/AlexanderKuptsov/KotlinAsFirst2016/contents/{+path}","compare_url":"https://api.github.com/repos/AlexanderKuptsov/KotlinAsFirst2016/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AlexanderKuptsov/KotlinAsFirst2016/merges","archive_url":"https://api.github.com/repos/AlexanderKuptsov/KotlinAsFirst2016/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AlexanderKuptsov/KotlinAsFirst2016/downloads","issues_url":"https://api.github.com/repos/AlexanderKuptsov/KotlinAsFirst2016/issues{/number}","pulls_url":"https://api.github.com/repos/AlexanderKuptsov/KotlinAsFirst2016/pulls{/number}","milestones_url":"https://api.github.com/repos/AlexanderKuptsov/KotlinAsFirst2016/milestones{/number}","notifications_url":"https://api.github.com/repos/AlexanderKuptsov/KotlinAsFirst2016/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AlexanderKuptsov/KotlinAsFirst2016/labels{/name}","releases_url":"https://api.github.com/repos/AlexanderKuptsov/KotlinAsFirst2016/releases{/id}","deployments_url":"https://api.github.com/repos/AlexanderKuptsov/KotlinAsFirst2016/deployments","created_at":"2016-09-07T19:17:48Z","updated_at":"2016-09-07T19:17:50Z","pushed_at":"2016-10-10T20:15:06Z","git_url":"git://github.com/AlexanderKuptsov/KotlinAsFirst2016.git","ssh_url":"git@github.com:AlexanderKuptsov/KotlinAsFirst2016.git","clone_url":"https://github.com/AlexanderKuptsov/KotlinAsFirst2016.git","svn_url":"https://github.com/AlexanderKuptsov/KotlinAsFirst2016","homepage":null,"size":3084,"stargazers_count":0,"watchers_count":0,"language":"Kotlin","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":"Kotlin-Polytech:master","ref":"master","sha":"feca01237894061c262fb94bfdc9020037c2a1f3","user":{"login":"Kotlin-Polytech","id":20967488,"avatar_url":"https://avatars.githubusercontent.com/u/20967488?v=3","gravatar_id":"","url":"https://api.github.com/users/Kotlin-Polytech","html_url":"https://github.com/Kotlin-Polytech","followers_url":"https://api.github.com/users/Kotlin-Polytech/followers","following_url":"https://api.github.com/users/Kotlin-Polytech/following{/other_user}","gists_url":"https://api.github.com/users/Kotlin-Polytech/gists{/gist_id}","starred_url":"https://api.github.com/users/Kotlin-Polytech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kotlin-Polytech/subscriptions","organizations_url":"https://api.github.com/users/Kotlin-Polytech/orgs","repos_url":"https://api.github.com/users/Kotlin-Polytech/repos","events_url":"https://api.github.com/users/Kotlin-Polytech/events{/privacy}","received_events_url":"https://api.github.com/users/Kotlin-Polytech/received_events","type":"Organization","site_admin":false},"repo":{"id":67405509,"name":"KotlinAsFirst2016","full_name":"Kotlin-Polytech/KotlinAsFirst2016","owner":{"login":"Kotlin-Polytech","id":20967488,"avatar_url":"https://avatars.githubusercontent.com/u/20967488?v=3","gravatar_id":"","url":"https://api.github.com/users/Kotlin-Polytech","html_url":"https://github.com/Kotlin-Polytech","followers_url":"https://api.github.com/users/Kotlin-Polytech/followers","following_url":"https://api.github.com/users/Kotlin-Polytech/following{/other_user}","gists_url":"https://api.github.com/users/Kotlin-Polytech/gists{/gist_id}","starred_url":"https://api.github.com/users/Kotlin-Polytech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kotlin-Polytech/subscriptions","organizations_url":"https://api.github.com/users/Kotlin-Polytech/orgs","repos_url":"https://api.github.com/users/Kotlin-Polytech/repos","events_url":"https://api.github.com/users/Kotlin-Polytech/events{/privacy}","received_events_url":"https://api.github.com/users/Kotlin-Polytech/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Kotlin-Polytech/KotlinAsFirst2016","description":null,"fork":false,"url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016","forks_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/forks","keys_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/teams","hooks_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/hooks","issue_events_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/issues/events{/number}","events_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/events","assignees_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/assignees{/user}","branches_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/branches{/branch}","tags_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/tags","blobs_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/git/refs{/sha}","trees_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/statuses/{sha}","languages_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/languages","stargazers_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/stargazers","contributors_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/contributors","subscribers_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/subscribers","subscription_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/subscription","commits_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/commits{/sha}","git_commits_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/git/commits{/sha}","comments_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/comments{/number}","issue_comment_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/issues/comments{/number}","contents_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/contents/{+path}","compare_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/merges","archive_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/downloads","issues_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/issues{/number}","pulls_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/pulls{/number}","milestones_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/milestones{/number}","notifications_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/labels{/name}","releases_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/releases{/id}","deployments_url":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/deployments","created_at":"2016-09-05T09:06:26Z","updated_at":"2016-10-07T20:37:33Z","pushed_at":"2016-10-11T12:56:20Z","git_url":"git://github.com/Kotlin-Polytech/KotlinAsFirst2016.git","ssh_url":"git@github.com:Kotlin-Polytech/KotlinAsFirst2016.git","clone_url":"https://github.com/Kotlin-Polytech/KotlinAsFirst2016.git","svn_url":"https://github.com/Kotlin-Polytech/KotlinAsFirst2016","homepage":null,"size":15746,"stargazers_count":13,"watchers_count":13,"language":"Kotlin","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":98,"mirror_url":null,"open_issues_count":64,"forks":98,"open_issues":64,"watchers":13,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/pulls/98"},"html":{"href":"https://github.com/Kotlin-Polytech/KotlinAsFirst2016/pull/98"},"issue":{"href":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/issues/98"},"comments":{"href":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/issues/98/comments"},"review_comments":{"href":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/pulls/98/comments"},"review_comment":{"href":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/pulls/98/commits"},"statuses":{"href":"https://api.github.com/repos/Kotlin-Polytech/KotlinAsFirst2016/statuses/54f3f4a1619d013be2e2e8bc36da0f97f9496da1"}}}}
{"actor":{"display_login":"ice-phoenix"}}