The Standard Flowchart Symbols
Terminal (Oval)
Marks where the program begins or ends. Every flowchart has exactly one Start and at least one End.
Process (Rectangle)
A calculation, assignment, or any action taken — like updating a variable.
Decision (Diamond)
A yes/no question. Exactly 2 arrows leave a decision — one for each possible answer.
Input / Output (Parallelogram)
Reading a value in (scanf) or displaying a value out (printf).
Flow Line (Arrow)
Shows the order steps happen in — always follow the direction of the arrowhead.
Connector (Circle)
Links two points in a large flowchart without drawing a long messy line across the page.
| Symbol | C equivalent |
|---|---|
| Terminal | main() { ... } start and return 0; end |
| Process | Any assignment statement, e.g. sum = sum + i; |
| Decision | if, while, for conditions |
| Input/Output | scanf() / printf() |
Check Even or Odd
#include <stdio.h> int main() { int n; printf("Enter n: "); scanf("%d", &n); if (n % 2 == 0) printf("Even\n"); else printf("Odd\n"); return 0; }
Enter n: 17 Odd
Find the Largest of Three Numbers
#include <stdio.h> int main() { int a, b, c, largest; printf("Enter a, b, c: "); scanf("%d %d %d", &a, &b, &c); if (a > b && a > c) largest = a; else if (b > c) largest = b; else largest = c; printf("Largest: %d\n", largest); return 0; }
Enter a, b, c: 12 45 30 Largest: 45
Sum of First N Natural Numbers
#include <stdio.h> int main() { int n, sum = 0; printf("Enter n: "); scanf("%d", &n); for (int i = 1; i <= n; i++) { sum = sum + i; } printf("Sum = %d\n", sum); return 0; }
Enter n: 5 Sum = 15
for re-checking its condition and running the update step (i++) before looping again.Check If a Number Is Prime
#include <stdio.h> int main() { int n, i, flag = 1; printf("Enter n: "); scanf("%d", &n); for (i = 2; i < n; i++) { if (n % i == 0) { flag = 0; // found a divisor -> not prime } } if (flag == 1) printf("Prime\n"); else printf("Not Prime\n"); return 0; }
Enter n: 23 Prime
Quick Quiz
Which shape represents a yes/no decision?
How many arrows normally leave a decision (diamond) symbol?
Which symbol represents scanf() or printf()?
In the Sum of N Numbers flowchart, what does the "loop back" arrow represent in the C code?
In the Prime Check flowchart, how many diamonds (decisions) are there, and why?
Lesson Checklist
- I can name all 5 standard flowchart symbols and their jobs
- I can trace the Even/Odd flowchart to its matching C code
- I can trace the staircase decision pattern in Largest of Three
- I understand the loop-back arrow represents a for/while loop
- I can trace the Prime Check flowchart's 3 decisions to the 3 conditions in the code
- I completed the quiz