Algorithm 1
Dr Benabderrezak
Researcher in Cyber Security
Full-stack Web developer 1
Variables
اﻟﻤﺘﻐﯿﺮات
2
Variables
Variables are symbolic names given to data where the value of the data stored may
change during the execution of the program
.اﻟﻤﺘﻐﯿﺮات ھﻲ أﺳﻤﺎء رﻣﺰﯾﺔ ﺗُﻌﻄﻰ ﻟﻠﺒﯿﺎﻧﺎت ﺣﯿﺚ ﻗﺪ ﺗﺘﻐﯿﺮ ﻗﯿﻤﺔ اﻟﺒﯿﺎﻧﺎت اﻟﻤﺨﺰﻧﺔ أﺛﻨﺎء ﺗﻨﻔﯿﺬ اﻟﺒﺮﻧﺎﻣﺞ
3
Variables Syntax
4
Constants
اﻟﺛواﺑت
5
Constants
A constant is a data item whose value cannot change during the program's execution
اﻟﺜﺎﺑﺖ ھﻮ ﻋﻨﺼﺮ ﺑﯿﺎﻧﺎت ﻻ ﯾﻤﻜﻦ أن ﺗﺘﻐﯿﺮ ﻗﯿﻤﺘﮫ أﺛﻨﺎء ﺗﻨﻔﯿﺬ اﻟﺒﺮﻧﺎﻣﺞ
6
Constants
7
Constants
8
Basic Data types
أﻧﻮاع اﻟﺒﯿﺎﻧﺎت اﻷﺳﺎﺳﯿﺔ
9
Basic Data types
- Each variable /constant has an associated data type
- It specifies the type of data that the variable can store like
1. integers : -1 , -7 , 0 , 1 , 2
2. character : ‘a’ , ‘b’,
3. floats : 2.3 , 3.8, -7.89
4. Strings / characters : “a” , “word not single letter”
10
Basic Data types ranges
Type Range
Int -32,768 to 32,767
Float 3.4E-38 to 3.4E+38
Double 1.7E-308 to 1.7E+308
Char -128 to 127
11