Variables

Goal:

write a program that uses variables. The program should store two values (integers if applicable). When the variables are set, you should add the second value to the first and print the results to the screen. If you want, you can store the result in a third veriable. For example c = a + b

Extra

Experiment some more with variables and basic arithmetics.

Language: Any
Difficulty level: Very easy.
Estimated time: 5 minutes

This entry was posted in Primitive data types. Bookmark the permalink.