Translate

Monday, 27 May 2013

Programming using VB.NET For Kids

Introduction to VB.NET Programming



Let us see the some basic programming language requirement.

1. Data type
2. Variables
3. Controls Structure


Datatype defines the type of data going to use.

Variables allocate the memory to store values based on datatype.

Control structure will be discussed later.


 Let see the datatype called 'Integer'.  Integer datatype stores whole number values ie., numbers without fraction.  It has capacity to store value range from –2,147,483,648 to +2,147,483,647 .
Other datatypes will be discussed as needed.

First open Visual Studio Express Edition or orther Visual Studio edition , select New Project -> Visual Basic-> Console Application. Name it Example1 Click Ok.

Below is a example program type it down.

Example Program-1

Module Example1

Sub Main()

  Dim A As Integer
  A = 123
  Console.Write(A)
  Console.ReadKey()
End Sub

End Module
 

 

 

The above program  first declares a variable A of datatype Integer, and it is assigned a value 123. The next statement Console.Write(A) displays the value of A to the screen and next Console statement is waiting for get a key to close the screen.

We will see more on next blog. 


 

1 comment: