Integer Variables Problems
Declare an Integer Variable
Declare the integer variable and then output the value of it. Then run your program.
Your program should output the following text.
Example integer: 42
Coding:
Blocks
Hint
Great job!
Try again
Drag the two blocks in the tray over to the program to declare the variable and output its value. The first block in the tray declares a variable with an integer type and assigns it the value of 42. The second block displays a short message and the value.
Example integer: 42
true
