Monday 30 September 2013

Coding 5 : Variable and data type

Variable is a place for collect data or information. Variable is also unique. In daily activities, people need variable. Example, if we want to save our handphone in school, we need locker. But, in school, we need locker number, so student can know where locker he/she saved. Anton save handphone in locker A, Billy save handphone in locker B. A and B is a variable.
But, when we save variable in computer memory, computer also have to know data type. Here is some data type:
1.int
Is a integer. Integer is for save integer number.
2.Float
Float is for real number.
3.Double
Double is for real number with wider range
4.Char
Is a character. Can be alphabet, symbol, operator, abd other.
5.Boolean

Is a true or false condition.

No comments:

Post a Comment