25% developed

Programming Basics/Variables

From Wikibooks, open books for an open world
Jump to navigation Jump to search

Variables are tools which are used to store data.

Programming languages often use types to distinguish different kinds of data stored in variables.

Data Type Description Example 1 Example 2 Example 3
Integer Any whole number. 1 300 48
Character A letter of the alphabet. a z y
String A collection of text Wikibooks Programming Basics Hello world!