Hi, Welcome to all. My name is Abdul Yesdani. Today we are going to learn how to work with different types , what is a variable, how the values are stored in a variable and how to work with numbers.
A variable is a memory location to store a value or data. Different datatypes of variables needed to store different data. Numeric data types : int, double, float, decimal.
Variables will be declared in association with data types.
Example: int number =78;
In the above statement 'int' is datatype and number is variable , '=' is assignment operator and '78' is value assigned to the variable.
Create a new Console app in the Visual studio IDE, give a relevant name to the app.
Run the application by pressing CTRL + F5 keys . You will get the output as shown below.
Watch the video for the same.
Comments
Post a Comment