C++ Fundamentals
C++ Fundamentals
Printing
int one = 1;
int two = 2;
int three = 3;
int four = 4;
two = one;
three = two;
four = three;
3. TRY IT to see the output. Click on the ++Code Visualizer++ link below to
go through the program step by step.
Code Visualizer
Lab: Challenge
To test the code, first click on the COMPILE button. This will compile your
code and turn it into a program. If your program compiled successfully, you
will see the message Command was successfully executed. Then you can
run your program by clicking on the TEST buttons. You will see the output
of a few different test cases:
Take a look at the test outputs above. Do they look like the expected outputs
below? If not, your code may need some revision.