{"id":22361340,"url":"https://github.com/kei-k23/basic-c-calculator","last_synced_at":"2026-03-09T00:34:23.819Z","repository":{"id":254127357,"uuid":"845576720","full_name":"Kei-K23/basic-c-calculator","owner":"Kei-K23","description":"This is a simple command-line calculator program written in C.","archived":false,"fork":false,"pushed_at":"2024-08-21T14:13:31.000Z","size":2,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-07T05:50:41.095Z","etag":null,"topics":["c","cli"],"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/Kei-K23.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":"2024-08-21T14:11:52.000Z","updated_at":"2024-09-18T01:06:29.000Z","dependencies_parsed_at":"2024-08-21T16:05:06.511Z","dependency_job_id":"d1ea5949-dc6f-421b-a58c-1377decb668f","html_url":"https://github.com/Kei-K23/basic-c-calculator","commit_stats":null,"previous_names":["kei-k23/basic-c-calculator"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Kei-K23/basic-c-calculator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kei-K23%2Fbasic-c-calculator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kei-K23%2Fbasic-c-calculator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kei-K23%2Fbasic-c-calculator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kei-K23%2Fbasic-c-calculator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Kei-K23","download_url":"https://codeload.github.com/Kei-K23/basic-c-calculator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kei-K23%2Fbasic-c-calculator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30278562,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-08T20:45:49.896Z","status":"ssl_error","status_checked_at":"2026-03-08T20:45:49.525Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["c","cli"],"created_at":"2024-12-04T16:29:20.455Z","updated_at":"2026-03-09T00:34:23.789Z","avatar_url":"https://github.com/Kei-K23.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Basic Calculator\n\nThis is a simple command-line calculator program written in `C`. It supports basic arithmetic operations such as addition, subtraction, multiplication, and division, along with advanced operations like square root and power calculation.\n\n## Features\n\n- Addition\n- Subtraction\n- Multiplication\n- Division\n- Square Root\n- Power Calculation\n- Input validation to handle division by zero\n\n## Getting Started\n\n### Prerequisites\n\nTo compile and run this program, you'll need:\n\n- A `C` compiler\n- A terminal or command prompt\n\n### Compilation\n\n1. Clone or download the repository to your local machine.\n2. Open your terminal or command prompt and navigate to the directory containing `main.cpp`.\n3. Compile the code using a `C` compiler. For example, using `clang`:\n\n```bash\nclang main.c -o calculator\n```\n\n## Running the Program\n\n1. Run the program by executing the compiled file:\n\n```bash\n./calculator\n```\n\n2. The program will display a menu with the available operations. Follow the prompts to perform calculations.\n\n```bash\nBasic Calculator Menu:\n1. Add\n2. Subtract\n3. Multiply\n4. Divide\n5. Square Root\n6. Power\n7. Exit\nChoose an operation: 1\nEnter first number: 5\nEnter second number: 3\nResult: 8\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkei-k23%2Fbasic-c-calculator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkei-k23%2Fbasic-c-calculator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkei-k23%2Fbasic-c-calculator/lists"}