0% found this document useful (0 votes)
3 views

Introduction

The document explains the concept of variables in programming, highlighting their role as named storage locations that can hold modifiable data. It outlines various data types, including String, Integer, and mentions Single and Double data types, providing examples of their usage. Each variable is uniquely identified within its scope and can represent different types of data, such as characters or whole numbers.
Copyright
© © All Rights Reserved
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

Introduction

The document explains the concept of variables in programming, highlighting their role as named storage locations that can hold modifiable data. It outlines various data types, including String, Integer, and mentions Single and Double data types, providing examples of their usage. Each variable is uniquely identified within its scope and can represent different types of data, such as characters or whole numbers.
Copyright
© © All Rights Reserved
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
You are on page 1/ 1

variable

A named storage location that can contain data that can be modified during program execution. Each
variable has a name that uniquely identifies it within its scope. A data type can be specified or not.

Dim abc as integer = 0 'abc is a variable


abc = abc + 1

Dim StringUser as String = "Lawrence"

DATA TYPES

String data type

A data type consisting of a sequence of contiguous characters that represent the characters themselves
rather than their numeric values. A String can include letters, numbers, spaces, and punctuation.
Dim StringFilename as String = "filename.csv"

Integer data type

A data type that pertains to numbers as whole, no decimal places.

You can also use Integer variables to represent enumerated values. An enumerated value can contain a
finite set of unique whole numbers, each of which has special meaning in the context in which it is used.
Dim a as integer = 0 'a as integer

a = Math.Sqrt(c2 - 49)

Single Data Type

Double Data Type

You might also like