{"id":21280104,"url":"https://github.com/arezyhs/cplusplus-simple-calculator","last_synced_at":"2025-07-16T02:41:56.032Z","repository":{"id":204311141,"uuid":"711554418","full_name":"arezyhs/cplusplus-simple-calculator","owner":"arezyhs","description":"This C++ program is a simple arithmetic calculator that allows users to perform basic arithmetic operations on two numbers. It supports addition, subtraction, multiplication, and division. Users can input two numbers and choose the desired operation.","archived":false,"fork":false,"pushed_at":"2023-10-29T21:59:40.000Z","size":4,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-22T04:11:13.071Z","etag":null,"topics":["calculator","cplusplus"],"latest_commit_sha":null,"homepage":"","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/arezyhs.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":"2023-10-29T16:13:55.000Z","updated_at":"2023-10-29T16:16:23.000Z","dependencies_parsed_at":null,"dependency_job_id":"db270e97-981e-4474-a804-e6c5898ed398","html_url":"https://github.com/arezyhs/cplusplus-simple-calculator","commit_stats":null,"previous_names":["arezyhs/cplusplus-simple-calculator"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arezyhs%2Fcplusplus-simple-calculator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arezyhs%2Fcplusplus-simple-calculator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arezyhs%2Fcplusplus-simple-calculator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arezyhs%2Fcplusplus-simple-calculator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arezyhs","download_url":"https://codeload.github.com/arezyhs/cplusplus-simple-calculator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243738955,"owners_count":20339997,"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":["calculator","cplusplus"],"created_at":"2024-11-21T10:28:06.219Z","updated_at":"2025-03-15T13:46:00.924Z","avatar_url":"https://github.com/arezyhs.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1\u003eSimple Arithmetic Calculator\u003c/h1\u003e\n\n\u003ch2\u003eDescription:\u003c/h2\u003e\n\u003cp\u003eThis C++ program is a simple arithmetic calculator that allows users to perform basic arithmetic operations on two numbers. It supports addition, subtraction, multiplication, and division. Users can input two numbers and choose the desired operation.\u003c/p\u003e\n\n\u003ch2\u003eHow to Use:\u003c/h2\u003e\n\u003col\u003e\n    \u003cli\u003eInput the first number.\u003c/li\u003e\n    \u003cli\u003eInput the second number.\u003c/li\u003e\n    \u003cli\u003eChoose the desired operation.\u003c/li\u003e\n    \u003cli\u003eEnjoy the result!\u003c/li\u003e\n\u003c/ol\u003e\n\n\u003ch2\u003eAvailable Operations:\u003c/h2\u003e\n\u003cul\u003e\n    \u003cli\u003eAddition (+)\u003c/li\u003e\n    \u003cli\u003eSubtraction (-)\u003c/li\u003e\n    \u003cli\u003eMultiplication (*)\u003c/li\u003e\n    \u003cli\u003eDivision (/)\u003c/li\u003e\n    \u003cli\u003eExit (0)\u003c/li\u003e\n\u003c/ul\u003e\n\n\u003ch2\u003eError Handling:\u003c/h2\u003e\n\u003cp\u003eThe program checks for division by zero and provides an error message if the user attempts to divide by zero.\u003c/p\u003e\n\n\u003ch2\u003eHow It Works:\u003c/h2\u003e\n\u003cul\u003e\n    \u003cli\u003eThe program defines functions for addition, subtraction, multiplication, and division.\u003c/li\u003e\n    \u003cli\u003eIt takes user inputs for two numbers and the desired operation.\u003c/li\u003e\n    \u003cli\u003eDepending on the operation chosen, the program calls the corresponding function and displays the result.\u003c/li\u003e\n    \u003cli\u003eIf the user chooses \"Exit,\" the program ends with a farewell message.\u003c/li\u003e\n\u003c/ul\u003e\n\n\u003ch2\u003eNote:\u003c/h2\u003e\n\u003cul\u003e\n    \u003cli\u003eThis program serves as a basic example of a calculator and can be useful for educational purposes.\u003c/li\u003e\n    \u003cli\u003eUsers can modify or extend this code to include additional operations or functionalities.\u003c/li\u003e\n\u003c/ul\u003e\n\n\u003cp\u003eEnjoy using this simple arithmetic calculator!\u003c/p\u003e\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farezyhs%2Fcplusplus-simple-calculator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farezyhs%2Fcplusplus-simple-calculator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farezyhs%2Fcplusplus-simple-calculator/lists"}