Trace Table Generator and Dry Run
A dry run by hand is slow and easy to get wrong. Paste your program and a sample input: AI Flowchart traces it the way you would on paper and fills the trace table, with the current line, the flowchart box and every variable after each step. Press ▶ Explain to watch it run.
- One row per step: line, box, every variable and the output
- Animated on the flowchart: the box and the line light up together
- Practice mode: guess each variable before the step shows it
- Find my bug: tell it the output you expected and see the step where it goes wrong
- Up to 45 steps per run; longer runs say where they stop
- Copy the table, or download it in your lab record
How it works
- Paste your code and a sample input
- Press ✦ Make flowchart
- Press ▶ Explain, or open the Trace table tab
- Click any row to jump to that step
Try it with
- n = int(input()) fact = 1 i = 1 while i <= n: fact = fact * i i = i + 1 print(fact)
- #include <stdio.h> int main() { int a, b, t; scanf("%d %d", &a, &b); while (b != 0) { t = b; b = a % b; a = t; } printf("%d", a); return 0; }
- int[] a = {2, 5, 8, 12, 16, 23}; int key = 12, low = 0, high = a.length - 1, pos = -1; while (low <= high) { int mid = (low + high) / 2; if (a[mid] == key) { pos = mid; break; } else if (a[mid] < key) low = mid + 1; else high = mid - 1; } System.out.println(pos);
Frequently asked questions
Does it run my code?
No. The AI reads the program and works out each step the way you would on paper, following the language’s rules (integer division, loop bounds). Nothing is executed on a server.
How long can the program be?
Up to about 80 lines, which covers lab exercises. A run shows up to 45 steps; if it is longer, the last step says how it continues.
Is it free?
Yes. A flowchart and its dry run use one free AI credit. The Word / PDF lab record with the trace table needs Pro or the $2.99 7-day pass.
Can I export it?
Yes — PNG, SVG, PDF, PowerPoint with an editable slide, Mermaid code and draw.io. You can also share a live link or present it full screen.
Classic programs with flowchart, algorithm and code
- Prime Number Check: flowchart, algorithm and program
- Factorial of a Number: flowchart, algorithm and program
- Fibonacci Series: flowchart, algorithm and program
- Palindrome Number: flowchart, algorithm and program
- Armstrong Number: flowchart, algorithm and program
- Reverse a Number: flowchart, algorithm and program
- Sum of Digits: flowchart, algorithm and program
- Leap Year: flowchart, algorithm and program
- Largest of Three Numbers: flowchart, algorithm and program
- Bubble Sort: flowchart, algorithm and program
- Binary Search: flowchart, algorithm and program
- Factorial Using Recursion: flowchart, algorithm and program
- All 88 programs →