Skip to content

learn · free

Never coded before? Start here.

Watch your code run line by line, guess what happens next, then write it yourself. Finish ready for DSA.

1int score = 40;
2score = score + 2;
3cout << score << endl;

int score

42

score was 40. Line 2 adds 2 and stores the result back.

Output

(nothing yet)

Pick a language