{"id":18572778,"url":"https://github.com/truecodersio/operators-exercise","last_synced_at":"2025-05-16T05:07:02.187Z","repository":{"id":62955491,"uuid":"533452270","full_name":"truecodersio/Operators-Exercise","owner":"truecodersio","description":".NET 6.0 template project for the operators exercise at TrueCoders","archived":false,"fork":false,"pushed_at":"2025-05-05T15:38:08.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":446,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-05T16:49:47.852Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/truecodersio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-09-06T18:24:05.000Z","updated_at":"2025-05-05T15:38:13.000Z","dependencies_parsed_at":"2025-04-06T09:10:37.397Z","dependency_job_id":"f8945e35-3c3e-4711-bb46-1eca4c6c064d","html_url":"https://github.com/truecodersio/Operators-Exercise","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/truecodersio%2FOperators-Exercise","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/truecodersio%2FOperators-Exercise/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/truecodersio%2FOperators-Exercise/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/truecodersio%2FOperators-Exercise/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/truecodersio","download_url":"https://codeload.github.com/truecodersio/Operators-Exercise/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254471060,"owners_count":22076585,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-06T23:07:11.973Z","updated_at":"2025-05-16T05:07:00.559Z","avatar_url":"https://github.com/truecodersio.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Exercise 1:\n\n+ Create a simple program using the template to write out the results of addition, subtraction, multiplication, division, and modulus operations.\n\n+ For division, create two integer variables called a and b.\n\n+ Create a third integer variable and name it quotient (the result of a division) that stores the result of the division of a and b, and another integer variable named remainder that stores the remainder (using the % operator). Write out the results using Console.WriteLine or Console.Write to write out the results in the following form: if a = 17 and b = 4, print the following:\n\n  The result should say: 17/4 is 4 remainder 1\n\n## Exercise 2:\n\n+ Create a method that will Calculate the area of a circle based on its radius - you can name the method AreaOfCircle.\n\n+ This method will use this formula Math.PI * Math.Pow(radius, 2) and return the area of type double\n\n+ The method will also accept radius as a parameter\n\n+ Allow a user to input a value for radius in the console using the following code:\n\n```\nvar radius = double.Parse(Console.ReadLine());\n```\n\nWhen finished your output should look something like this:\n\n```\n17/4 is 4 remainder 1\nwhat is the radius of your circle?\n20\nThe area of a circle with radius of 20 is 1256.6370614359173\npress any key to continue...\n```\n## Thought Exercise:\n\nWhat is the value of k in the following code?:\n```\n// var is implicit type inferrence (more on this later)\nvar i = 3;\nvar j = 4;\nvar k = ++i * j++;\n\nConsole.WriteLine(k); // ouputs ?\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftruecodersio%2Foperators-exercise","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftruecodersio%2Foperators-exercise","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftruecodersio%2Foperators-exercise/lists"}