Constants in addition to variables are an identifier used to stand upwards for a for certain value inwards the plan process. In contrast to constants whose value tin non hold upwards altered or e'er stay an excessive hose going on, the value of a variable may alter every bit needed. Constants in addition to variables are places inwards the figurer retention to bring information inwards the shape of values with for certain information types. Constants in addition to variables should hold upwards named every bit identifiers.
Logically you lot tin imagine a constable or a variable every bit an empty box that tin hold upwards filled amongst something of a for certain information type, for representative nosotros practise an integer variable, thus inwards logic nosotros are creating an empty box that tin alone hold upwards filled amongst newspaper inscribed integers, may hold upwards a type other than an integer.
Suppose to practise 2 constants or variables amongst the mention of the value in addition to x identifier each of which tin hold upwards used to shop a value inwards retention inwards accordance amongst the specified information type:
Suppose the value is a variable. Then the value variables that choose been made this selajutnya tin hold upwards used inwards the program, for representative performed arithmetics operations inwards the shape of partitioning or modulo operations.
Similarly this article.
Sorry if at that topographic point is a incorrect word.
The destination of discussion wassalamualaikum wr. wb
Referensi :
- Ebook Logical in addition to Algorithm