# azmain-hosen/c-programming architecture

> Architecture diagram of the GitHub repository azmain-hosen/c-programming, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-22). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/azmain-hosen/c-programming
- Repository: https://github.com/azmain-hosen/c-programming

## Overview

This repository is a collection of standalone C learning examples, not a single application. A learner studies and runs individual programs covering language fundamentals, conversions, control flow, loops, and math; interactive examples read input and print results, while others demonstrate fixed examples. There is no shared runtime or demonstrated call chain between lessons. The tree and samples support these capability areas, but only excerpted programs provide evidence for specific input/output interactions; unsampled lessons are represented by their existing directories.

Main entry points: [`01-basics/01-first_program/04-formatted_output.c`](https://github.com/azmain-hosen/c-programming/blob/main/01-basics/01-first_program/04-formatted_output.c) (Formatted Output), [`01-basics/05-control_flow/nested_if/atm_system.c`](https://github.com/azmain-hosen/c-programming/blob/main/01-basics/05-control_flow/nested_if/atm_system.c) (ATM Example), [`01-basics/05-control_flow/switch_case/rps_game.c`](https://github.com/azmain-hosen/c-programming/blob/main/01-basics/05-control_flow/switch_case/rps_game.c) (Rock Paper Scissors), [`01-basics/07-math_and_geometry/Triangle/area_of_isosceles_triangle.c`](https://github.com/azmain-hosen/c-programming/blob/main/01-basics/07-math_and_geometry/Triangle/area_of_isosceles_triangle.c) (Triangle Area)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_fundamentals["C Fundamentals"]
  node_output["Formatted Output"]
  node_types["Types And Variables"]
  node_operators["Operators"]
end

subgraph group_conversion["Conversions"]
  node_casts["Type Casting"]
  node_temperature["Temperature Conversion"]
  node_units["Unit Conversion"]
  node_numbers["Number Systems"]
  node_characters["Character Conversion"]
end

subgraph group_control["Control Flow"]
  node_conditions["Conditional Examples"]
  node_atm["ATM Example<br/>[atm_system.c]"]
  node_calculator["Calculator Example"]
  node_game["Rock Paper Scissors<br/>[rps_game.c]"]
end

subgraph group_iteration["Loops"]
  node_forloops["For Loop Examples"]
  node_whileloops["While Loop Examples"]
end

subgraph group_math["Math Examples"]
  node_geometry["Geometry Examples"]
  node_triangle["Triangle Area"]
end

node_learner(("Learner"))

node_learner -->|"runs example"| node_output
node_output -->|"prints profile"| node_learner
node_learner -->|"enters PIN and choices"| node_atm
node_atm -->|"prints account results"| node_learner
node_learner -->|"enters moves"| node_game
node_game -->|"prints game result"| node_learner
node_learner -->|"enters side lengths"| node_triangle
node_triangle -->|"prints area"| node_learner

click node_output "https://github.com/azmain-hosen/c-programming/blob/main/01-basics/01-first_program/04-formatted_output.c"
click node_types "https://github.com/azmain-hosen/c-programming/tree/main/01-basics/02-variables_and_data-types"
click node_operators "https://github.com/azmain-hosen/c-programming/tree/main/01-basics/03-operators"
click node_casts "https://github.com/azmain-hosen/c-programming/tree/main/01-basics/04-conversions/01-type_casting"
click node_temperature "https://github.com/azmain-hosen/c-programming/tree/main/01-basics/04-conversions/02-temperature_conversion"
click node_units "https://github.com/azmain-hosen/c-programming/tree/main/01-basics/04-conversions/03-unit_conversion"
click node_numbers "https://github.com/azmain-hosen/c-programming/tree/main/01-basics/04-conversions/04-number_system_conversion"
click node_characters "https://github.com/azmain-hosen/c-programming/tree/main/01-basics/04-conversions/05-character_conversion"
click node_conditions "https://github.com/azmain-hosen/c-programming/tree/main/01-basics/05-control_flow"
click node_atm "https://github.com/azmain-hosen/c-programming/blob/main/01-basics/05-control_flow/nested_if/atm_system.c"
click node_calculator "https://github.com/azmain-hosen/c-programming/blob/main/01-basics/05-control_flow/switch_case/simple_calculator.c"
click node_game "https://github.com/azmain-hosen/c-programming/blob/main/01-basics/05-control_flow/switch_case/rps_game.c"
click node_forloops "https://github.com/azmain-hosen/c-programming/tree/main/01-basics/06-loops/for_loop"
click node_whileloops "https://github.com/azmain-hosen/c-programming/tree/main/01-basics/06-loops/while_loop"
click node_geometry "https://github.com/azmain-hosen/c-programming/tree/main/01-basics/07-math_and_geometry"
click node_triangle "https://github.com/azmain-hosen/c-programming/blob/main/01-basics/07-math_and_geometry/Triangle/area_of_isosceles_triangle.c"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_output,node_types,node_operators toneBlue
class node_casts,node_temperature,node_units,node_numbers,node_characters toneAmber
class node_conditions,node_atm,node_calculator,node_game toneMint
class node_forloops,node_whileloops toneRose
class node_geometry,node_triangle,node_learner toneIndigo
```

## Components

### C Fundamentals

- [Formatted Output](https://github.com/azmain-hosen/c-programming/blob/main/01-basics/01-first_program/04-formatted_output.c): `01-basics/01-first_program/04-formatted_output.c`
- [Types And Variables](https://github.com/azmain-hosen/c-programming/tree/main/01-basics/02-variables_and_data-types): `01-basics/02-variables_and_data-types`
- [Operators](https://github.com/azmain-hosen/c-programming/tree/main/01-basics/03-operators): `01-basics/03-operators`

### Conversions

- [Type Casting](https://github.com/azmain-hosen/c-programming/tree/main/01-basics/04-conversions/01-type_casting): `01-basics/04-conversions/01-type_casting`
- [Temperature Conversion](https://github.com/azmain-hosen/c-programming/tree/main/01-basics/04-conversions/02-temperature_conversion): `01-basics/04-conversions/02-temperature_conversion`
- [Unit Conversion](https://github.com/azmain-hosen/c-programming/tree/main/01-basics/04-conversions/03-unit_conversion): `01-basics/04-conversions/03-unit_conversion`
- [Number Systems](https://github.com/azmain-hosen/c-programming/tree/main/01-basics/04-conversions/04-number_system_conversion): `01-basics/04-conversions/04-number_system_conversion`
- [Character Conversion](https://github.com/azmain-hosen/c-programming/tree/main/01-basics/04-conversions/05-character_conversion): `01-basics/04-conversions/05-character_conversion`

### Control Flow

- [Conditional Examples](https://github.com/azmain-hosen/c-programming/tree/main/01-basics/05-control_flow): `01-basics/05-control_flow`
- [ATM Example](https://github.com/azmain-hosen/c-programming/blob/main/01-basics/05-control_flow/nested_if/atm_system.c): `01-basics/05-control_flow/nested_if/atm_system.c`
- [Calculator Example](https://github.com/azmain-hosen/c-programming/blob/main/01-basics/05-control_flow/switch_case/simple_calculator.c): `01-basics/05-control_flow/switch_case/simple_calculator.c`
- [Rock Paper Scissors](https://github.com/azmain-hosen/c-programming/blob/main/01-basics/05-control_flow/switch_case/rps_game.c): `01-basics/05-control_flow/switch_case/rps_game.c`

### Loops

- [For Loop Examples](https://github.com/azmain-hosen/c-programming/tree/main/01-basics/06-loops/for_loop): `01-basics/06-loops/for_loop`
- [While Loop Examples](https://github.com/azmain-hosen/c-programming/tree/main/01-basics/06-loops/while_loop): `01-basics/06-loops/while_loop`

### Math Examples

- [Geometry Examples](https://github.com/azmain-hosen/c-programming/tree/main/01-basics/07-math_and_geometry): `01-basics/07-math_and_geometry`
- [Triangle Area](https://github.com/azmain-hosen/c-programming/blob/main/01-basics/07-math_and_geometry/Triangle/area_of_isosceles_triangle.c): `01-basics/07-math_and_geometry/Triangle/area_of_isosceles_triangle.c`

### Other components

- **Learner**

## Connections

- Learner → Formatted Output: runs example (evidence: `01-basics/01-first_program/04-formatted_output.c`)
- Formatted Output → Learner: prints profile (evidence: `01-basics/01-first_program/04-formatted_output.c`)
- Learner → ATM Example: enters PIN and choices (evidence: `01-basics/05-control_flow/nested_if/atm_system.c`)
- ATM Example → Learner: prints account results (evidence: `01-basics/05-control_flow/nested_if/atm_system.c`)
- Learner → Rock Paper Scissors: enters moves (evidence: `01-basics/05-control_flow/switch_case/rps_game.c`)
- Rock Paper Scissors → Learner: prints game result (evidence: `01-basics/05-control_flow/switch_case/rps_game.c`)
- Learner → Triangle Area: enters side lengths (evidence: `01-basics/07-math_and_geometry/Triangle/area_of_isosceles_triangle.c`)
- Triangle Area → Learner: prints area (evidence: `01-basics/07-math_and_geometry/Triangle/area_of_isosceles_triangle.c`)
