# prabeshupreti/allcprojects architecture

> Architecture diagram of the GitHub repository prabeshupreti/allcprojects, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-07). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/prabeshupreti/allcprojects
- Repository: https://github.com/prabeshupreti/allcprojects

## Overview

This repository is a collection of independent beginner C console programs, not one application with a shared workflow. A user runs an example, supplies input where requested, and receives a printed result; the examples cover basic I/O, control flow, arithmetic, and numeric problems. The graph preserves the standalone programs as separate components. Edges are shown only where sampled source demonstrates console interaction; unsampled programs have no asserted connections.

Main entry points: [`BasicIO/Main.c`](https://github.com/prabeshupreti/allcprojects/blob/master/BasicIO/Main.c) (Basic I/O), [`IfElse/Main.c`](https://github.com/prabeshupreti/allcprojects/blob/master/IfElse/Main.c) (If Else), [`SwitchStatementCheckTheDay/Main.c`](https://github.com/prabeshupreti/allcprojects/blob/master/SwitchStatementCheckTheDay/Main.c) (Day Switch), [`CalculatorWithSwitch/Main.c`](https://github.com/prabeshupreti/allcprojects/blob/master/CalculatorWithSwitch/Main.c) (Switch Calculator)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_io["Basic I/O"]
  node_basicfunction["Basic Function<br/>[Main.c]"]
  node_basicio["Basic I/O<br/>[Main.c]"]
  node_basiciochar["Character I/O<br/>[Main.c]"]
  node_basicionumerical["Numerical I/O<br/>[Main.c]"]
  node_basicunsafe["Unsafe I/O<br/>[Main.c]"]
  node_helloworld["Hello World<br/>[Main.c]"]
end

subgraph group_control["Control Flow"]
  node_conditionals["Conditionals<br/>[Main.c]"]
  node_ifelse["If Else<br/>[Main.c]"]
  node_daycheck["Day Switch<br/>[Main.c]"]
  node_calculator["Switch Calculator<br/>[Main.c]"]
end

subgraph group_numeric["Numeric Exercises"]
  node_examresult["Exam Results<br/>[Main.c]"]
  node_primev1["Prime Check V1<br/>[Main.c]"]
  node_primev2["Prime Check V2<br/>[Main.c]"]
  node_primev3["Prime Check V3<br/>[Main.c]"]
  node_circlearea["Circle Area<br/>[Main.c]"]
  node_fibonacci["Fibonacci<br/>[Main.c]"]
  node_hailstone["Hailstone<br/>[Main.c]"]
  node_palindrome["Palindrome<br/>[Main.c]"]
  node_reverse["Reverse Number<br/>[Main.c]"]
end

node_user(("User"))

node_user -->|"runs example"| node_basicio
node_user -->|"enters values"| node_calculator
node_user -->|"enters number"| node_primev1
node_user -->|"enters number"| node_primev2
node_user -->|"enters integer"| node_primev3
node_user -->|"enters day"| node_daycheck
node_user -->|"enters marks"| node_examresult
node_user -->|"enters numbers"| node_ifelse
node_user -->|"enters number"| node_palindrome
node_user -->|"enters number"| node_reverse
node_user -->|"enters term count"| node_fibonacci
node_basicio -->|"prints result"| node_user
node_calculator -->|"prints result"| node_user
node_primev1 -->|"prints result"| node_user
node_primev2 -->|"prints result"| node_user
node_primev3 -->|"prints result"| node_user
node_daycheck -->|"prints day"| node_user
node_examresult -->|"prints outcome"| node_user
node_ifelse -->|"prints comparison"| node_user
node_palindrome -->|"prints verdict"| node_user
node_reverse -->|"prints reversal"| node_user
node_fibonacci -->|"prints sequence"| node_user

click node_basicfunction "https://github.com/prabeshupreti/allcprojects/blob/master/BasicFunction/Main.c"
click node_basicio "https://github.com/prabeshupreti/allcprojects/blob/master/BasicIO/Main.c"
click node_basiciochar "https://github.com/prabeshupreti/allcprojects/blob/master/BasicIOChar/Main.c"
click node_basicionumerical "https://github.com/prabeshupreti/allcprojects/blob/master/BasicIONumerical/Main.c"
click node_basicunsafe "https://github.com/prabeshupreti/allcprojects/blob/master/BasicIOUnsafe/Main.c"
click node_helloworld "https://github.com/prabeshupreti/allcprojects/blob/master/HelloWorld/Main.c"
click node_conditionals "https://github.com/prabeshupreti/allcprojects/blob/master/Conditionals/Main.c"
click node_ifelse "https://github.com/prabeshupreti/allcprojects/blob/master/IfElse/Main.c"
click node_daycheck "https://github.com/prabeshupreti/allcprojects/blob/master/SwitchStatementCheckTheDay/Main.c"
click node_calculator "https://github.com/prabeshupreti/allcprojects/blob/master/CalculatorWithSwitch/Main.c"
click node_examresult "https://github.com/prabeshupreti/allcprojects/blob/master/ExamResultCalculation/Main.c"
click node_primev1 "https://github.com/prabeshupreti/allcprojects/blob/master/CheckForPrimeV1/Main.c"
click node_primev2 "https://github.com/prabeshupreti/allcprojects/blob/master/CheckForPrimeV2/Main.c"
click node_primev3 "https://github.com/prabeshupreti/allcprojects/blob/master/CheckForPrimeV3/Main.c"
click node_circlearea "https://github.com/prabeshupreti/allcprojects/blob/master/CircleArea/Main.c"
click node_fibonacci "https://github.com/prabeshupreti/allcprojects/blob/master/Fibonacci/Main.c"
click node_hailstone "https://github.com/prabeshupreti/allcprojects/blob/master/HailStone/Main.c"
click node_palindrome "https://github.com/prabeshupreti/allcprojects/blob/master/Palindrome/Main.c"
click node_reverse "https://github.com/prabeshupreti/allcprojects/blob/master/Reverse/Main.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_basicfunction,node_basicio,node_basiciochar,node_basicionumerical,node_basicunsafe,node_helloworld,node_user toneBlue
class node_conditionals,node_ifelse,node_daycheck,node_calculator toneAmber
class node_examresult,node_primev1,node_primev2,node_primev3,node_circlearea,node_fibonacci,node_hailstone,node_palindrome,node_reverse toneMint
```

## Components

### Basic I/O

- [Basic Function](https://github.com/prabeshupreti/allcprojects/blob/master/BasicFunction/Main.c): `BasicFunction/Main.c`
- [Basic I/O](https://github.com/prabeshupreti/allcprojects/blob/master/BasicIO/Main.c): `BasicIO/Main.c`
- [Character I/O](https://github.com/prabeshupreti/allcprojects/blob/master/BasicIOChar/Main.c): `BasicIOChar/Main.c`
- [Numerical I/O](https://github.com/prabeshupreti/allcprojects/blob/master/BasicIONumerical/Main.c): `BasicIONumerical/Main.c`
- [Unsafe I/O](https://github.com/prabeshupreti/allcprojects/blob/master/BasicIOUnsafe/Main.c): `BasicIOUnsafe/Main.c`
- [Hello World](https://github.com/prabeshupreti/allcprojects/blob/master/HelloWorld/Main.c): `HelloWorld/Main.c`

### Control Flow

- [Conditionals](https://github.com/prabeshupreti/allcprojects/blob/master/Conditionals/Main.c): `Conditionals/Main.c`
- [If Else](https://github.com/prabeshupreti/allcprojects/blob/master/IfElse/Main.c): `IfElse/Main.c`
- [Day Switch](https://github.com/prabeshupreti/allcprojects/blob/master/SwitchStatementCheckTheDay/Main.c): `SwitchStatementCheckTheDay/Main.c`
- [Switch Calculator](https://github.com/prabeshupreti/allcprojects/blob/master/CalculatorWithSwitch/Main.c): `CalculatorWithSwitch/Main.c`

### Numeric Exercises

- [Exam Results](https://github.com/prabeshupreti/allcprojects/blob/master/ExamResultCalculation/Main.c): `ExamResultCalculation/Main.c`
- [Prime Check V1](https://github.com/prabeshupreti/allcprojects/blob/master/CheckForPrimeV1/Main.c): `CheckForPrimeV1/Main.c`
- [Prime Check V2](https://github.com/prabeshupreti/allcprojects/blob/master/CheckForPrimeV2/Main.c): `CheckForPrimeV2/Main.c`
- [Prime Check V3](https://github.com/prabeshupreti/allcprojects/blob/master/CheckForPrimeV3/Main.c): `CheckForPrimeV3/Main.c`
- [Circle Area](https://github.com/prabeshupreti/allcprojects/blob/master/CircleArea/Main.c): `CircleArea/Main.c`
- [Fibonacci](https://github.com/prabeshupreti/allcprojects/blob/master/Fibonacci/Main.c): `Fibonacci/Main.c`
- [Hailstone](https://github.com/prabeshupreti/allcprojects/blob/master/HailStone/Main.c): `HailStone/Main.c`
- [Palindrome](https://github.com/prabeshupreti/allcprojects/blob/master/Palindrome/Main.c): `Palindrome/Main.c`
- [Reverse Number](https://github.com/prabeshupreti/allcprojects/blob/master/Reverse/Main.c): `Reverse/Main.c`

### Other components

- **User**

## Connections

- User → Basic I/O: runs example (evidence: `BasicIO/Main.c`)
- User → Switch Calculator: enters values (evidence: `CalculatorWithSwitch/Main.c`)
- User → Prime Check V1: enters number (evidence: `CheckForPrimeV1/Main.c`)
- User → Prime Check V2: enters number (evidence: `CheckForPrimeV2/Main.c`)
- User → Prime Check V3: enters integer (evidence: `CheckForPrimeV3/Main.c`)
- User → Day Switch: enters day (evidence: `SwitchStatementCheckTheDay/Main.c`)
- User → Exam Results: enters marks (evidence: `ExamResultCalculation/Main.c`)
- User → If Else: enters numbers (evidence: `IfElse/Main.c`)
- User → Palindrome: enters number (evidence: `Palindrome/Main.c`)
- User → Reverse Number: enters number (evidence: `Reverse/Main.c`)
- User → Fibonacci: enters term count (evidence: `Fibonacci/Main.c`)
- Basic I/O → User: prints result (evidence: `BasicIO/Main.c`)
- Switch Calculator → User: prints result (evidence: `CalculatorWithSwitch/Main.c`)
- Prime Check V1 → User: prints result (evidence: `CheckForPrimeV1/Main.c`)
- Prime Check V2 → User: prints result (evidence: `CheckForPrimeV2/Main.c`)
- Prime Check V3 → User: prints result (evidence: `CheckForPrimeV3/Main.c`)
- Day Switch → User: prints day (evidence: `SwitchStatementCheckTheDay/Main.c`)
- Exam Results → User: prints outcome (evidence: `ExamResultCalculation/Main.c`)
- If Else → User: prints comparison (evidence: `IfElse/Main.c`)
- Palindrome → User: prints verdict (evidence: `Palindrome/Main.c`)
- Reverse Number → User: prints reversal (evidence: `Reverse/Main.c`)
- Fibonacci → User: prints sequence (evidence: `Fibonacci/Main.c`)
