{"id":26105431,"url":"https://github.com/fatima-progmmer/for-loop","last_synced_at":"2025-03-09T21:07:30.548Z","repository":{"id":281284164,"uuid":"854393206","full_name":"Fatima-progmmer/For-loop","owner":"Fatima-progmmer","description":null,"archived":false,"fork":false,"pushed_at":"2025-03-08T02:37:41.000Z","size":1500,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-08T03:23:47.247Z","etag":null,"topics":["coding","cplus","cpp","forloop","programming"],"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/Fatima-progmmer.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-09-09T05:01:53.000Z","updated_at":"2025-03-08T02:38:17.000Z","dependencies_parsed_at":"2025-03-08T03:34:36.439Z","dependency_job_id":null,"html_url":"https://github.com/Fatima-progmmer/For-loop","commit_stats":null,"previous_names":["fatima-progmmer/for-loop"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fatima-progmmer%2FFor-loop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fatima-progmmer%2FFor-loop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fatima-progmmer%2FFor-loop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Fatima-progmmer%2FFor-loop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Fatima-progmmer","download_url":"https://codeload.github.com/Fatima-progmmer/For-loop/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242750806,"owners_count":20179260,"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":["coding","cplus","cpp","forloop","programming"],"created_at":"2025-03-09T21:07:29.988Z","updated_at":"2025-03-09T21:07:30.541Z","avatar_url":"https://github.com/Fatima-progmmer.png","language":"C++","readme":"# For Loop in C\n\n## Overview\nThis repository contains an implementation and explanation of the **for loop** in the C programming language. The `for` loop is one of the most commonly used loops in C, allowing controlled iteration with initialization, condition checking, and increment/decrement in a single line.\n\n## Key Features\n- Demonstrates the syntax and working of the `for` loop.\n- Provides example programs for better understanding.\n- Helps beginners grasp the concept through practical implementation.\n\n## Syntax\n```c\n#include \u003cstdio.h\u003e\n\nint main() {\n    int i;\n    for (i = 1; i \u003c= 5; i++) {\n        printf(\"%d\\n\", i);\n    }\n    return 0;\n}\n```\n\n## Explanation\n1. **Initialization**: The loop starts by initializing `i = 1`.\n2. **Condition Checking**: It checks if `i \u003c= 5`. If true, the loop body executes; otherwise, the loop terminates.\n3. **Iteration Update**: The loop variable `i` is incremented after each iteration.\n\n## Example Output\n```\n1\n2\n3\n4\n5\n```\n\n## How to Run the Code\n1. Clone the repository:\n   ```sh\n   git clone https://github.com/Fatima-progmmer/For-loop\n   ```\n2. Navigate to the project folder:\n   ```sh\n   cd For-loop\n   ```\n3. Compile the program using GCC:\n   ```sh\n   gcc for_loop_example.c -o for_loop_example\n   ```\n4. Run the executable:\n   ```sh\n   ./for_loop_example\n   ```\n\n## Contribution\nFeel free to contribute by adding more examples, improving documentation, or optimizing the code. Fork the repository and create a pull request with your changes.\n\n## License\nThis project is open-source and available under the **MIT License**.\n\n---\n### Author: Tanzeela Fatima\nFor more projects and contributions, visit my [GitHub Profile](https://github.com/Fatima-progmmer).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffatima-progmmer%2Ffor-loop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffatima-progmmer%2Ffor-loop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffatima-progmmer%2Ffor-loop/lists"}