{"id":18572744,"url":"https://github.com/truecodersio/selection-statements-exercise","last_synced_at":"2025-05-16T07:04:50.611Z","repository":{"id":64479517,"uuid":"533457322","full_name":"truecodersio/Selection-Statements-Exercise","owner":"truecodersio","description":".NET 6.0 template project for the Selection Statements exercise at TrueCoders","archived":false,"fork":false,"pushed_at":"2025-03-28T15:29:56.000Z","size":91,"stargazers_count":0,"open_issues_count":0,"forks_count":422,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-06T15:13:29.077Z","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}},"created_at":"2022-09-06T18:38:53.000Z","updated_at":"2025-03-28T15:30:00.000Z","dependencies_parsed_at":"2023-01-03T20:33:17.889Z","dependency_job_id":null,"html_url":"https://github.com/truecodersio/Selection-Statements-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%2FSelection-Statements-Exercise","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/truecodersio%2FSelection-Statements-Exercise/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/truecodersio%2FSelection-Statements-Exercise/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/truecodersio%2FSelection-Statements-Exercise/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/truecodersio","download_url":"https://codeload.github.com/truecodersio/Selection-Statements-Exercise/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254485055,"owners_count":22078767,"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:05.782Z","updated_at":"2025-05-16T07:04:45.588Z","avatar_url":"https://github.com/truecodersio.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Exercise 1:\n\nCreate a program that allows a user to play a game where they must guess what your favorite number is:\n\n* Initialize an integer to represent a favorite number and assign a value with a number of your choosing or you can assign a random number to this variable:\n\n```\nvar r = new Random();\nvar favNumber = r.Next(1,1000);\nvar userInput = int.Parse(Console.ReadLine());\n``` \n\nThe following code will allow the user to guess what your favorite number is:\n```\nvar userInput = int.Parse(Console.ReadLine());\n```\n\n+ Create an if-statement that if the guessed number is below the initial value, print out “too low”.\n\n+ Create an else-if statement that if the number is higher than the initial value, print out “too high”.\n\n+ Create an else statement that prints out some type of congratulations for guessing the correct number e.g. “You guessed it!!!”.\n\nRemember to save, commit, and push back to Github once complete\n\n## Extra Switch Statement Practice:\n\n[https://www.codewars.com/kata/568dc014440f03b13900001d/train/csharp](https://www.codewars.com/kata/568dc014440f03b13900001d/train/csharp)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftruecodersio%2Fselection-statements-exercise","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftruecodersio%2Fselection-statements-exercise","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftruecodersio%2Fselection-statements-exercise/lists"}