Are u sure to learn algorithm ?
of course, right ?
Now, we have to know about variable.
Before, i give u an example about how to make a cup of coffee.
In that algorithm, i placed some variable like sugar.
No, i think sugar is not a variable, but type of variable.
An example, there is sugar named "sugarA".
"sugarA" is a variable that has type sugar.
Variable have a value.
What the value of "sugarA" ?
e.g. sugarA have value 100mg.
To learn algorithm, we have to know about variable.
There are many types of variable in programming language.
Some of them, like, integer (numeric type), string (character type/alphanumeric), boolean (true or false) and so on.
I will give u various types of variable in C/C++ programming language.
Subscribe to:
Post Comments (Atom)

No comments:
Post a Comment