Skip to main content

Learn C# Programming in Easy way, Step-3. Variables, Datatypes, values.

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. 

Type the following code in the code editor.



Run the application by pressing CTRL + F5 keys . You will get the output as shown below.



Watch the video for the same.











    

Comments

Popular posts from this blog

.Net Presentation

.NET is a free, cross-platform, open source developer platform for building many different types of applications. With .NET, you can use multiple languages, editors, and libraries to build for web, mobile, desktop, games, and IoT. You can write .NET apps in C#, F#, or Visual Basic. C# is a simple, modern, object-oriented, and type-safe programming language. F# is a programming language that makes it easy to write succinct, robust, and performant code. Visual Basic is an approachable language with a simple syntax for building type-safe, object-oriented apps. You can write .NET apps in C#, F#, or Visual Basic. C# is a simple, modern, object-oriented, and type-safe programming language. F# is a programming language that makes it easy to write succinct, robust, and performant code. Visual Basic is an approachable language with a simple syntax for building type-safe, object-oriented apps.

node.js tutorial

node.js is a open source server environment. Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine. Node.js is free,it is cross platform means runs on various platforms (Windows, Linux, Unix, Mac). Node.js uses JavaScript on the server.

ASP.NET Core MVC Web App Presentation

ASP.NET Core MVC is a rich framework for building web apps and APIs using the Model-View-Controller design pattern. The Model-View-Controller (MVC) architectural pattern separates an application into three main groups of components: Models, Views, and Controllers. This pattern helps to achieve separation of concerns. Using this pattern, user requests are routed to a Controller which is responsible for working with the Model to perform user actions and/or retrieve results of queries. The Controller chooses the View to display to the user, and provides it with any Model data it requires.