Summary

Completed

In this module, you built several programs. You learned to declare and use variables to store data. Variables can be declared with or without the type. If it's the latter, the type is inferred from the value it's assigned initially.

You also learned how to print values to a screen, and you now know the difference between various print functions. As part of printing to a screen, depending on the print function used, you need to use a formatter to indicate the data type you're printing if you combine it with a string.

Next, you learned about reading from a console. Reading input from a console turns the read data into a string. To work with such data, you convert it to the intended target type. There are conversion functions for most basic types. You can use an idiomatic way of converting or use a converter from the System namespace.

Finally, you explored some operators and how they could be used to carry out arithmetic operations.