CodeX-Ray
1. Variables & RAM Boxes
2. Input/Output & Operators
3. Decisions: if/else
4. Loops: while & for
0 / 4 Done
β
Mark Done
ποΈ
Class Programs
π―
Focus
βοΈ
β―
Code
X-Ray & Terminal
β Back
Step βΆ
β© Run all
βΊ Reset
Ready
main.c
+
β¨
Ask AI
1
2
3
4
5
6
7
8
9
#include <stdio.h> int main() { int age = 20; char grade = 'A'; age = age + 1; printf("Age: %d\n", age); printf("Grade: %c\n", grade); return 0; }
β Back
Step βΆ
β© Run all
βΊ Reset
Ready
Press Step to power on the CPU and watch the program run.
1. 2D Computer
2. RAM Boxes
3. Dry-Run Table
x-ray
EN
Roman Urdu
β€’
Expand
ADDRESS BUS β
DATA BUS β
INPUT BUS β
OUTPUT BUS β
CPU
Central Processing Unit
CU
Control Unit
IDLE
F
D
E
W
PC
β
IR
β
ALU
Math / Logic Unit
Idle
RAM
Memory
no variables yet
KEYBOARD
no output yet
MONITOR
Address bus: which RAM slot
Data bus: the value itself
I/O wires: keyboard, monitor
Terminal
β¨ Keyboard
π₯ Monitor
Hide
Program output appears here.