0% found this document useful (0 votes)
3 views12 pages

Understanding Variables and Data Types

The document discusses fundamental programming concepts such as variables and constants, defining variables as symbolic names for data that can change during execution, while constants remain unchanged. It also outlines basic data types, including integers, characters, floats, and strings, along with their respective ranges. This foundational knowledge is essential for understanding data handling in programming.

Uploaded by

booba3205
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views12 pages

Understanding Variables and Data Types

The document discusses fundamental programming concepts such as variables and constants, defining variables as symbolic names for data that can change during execution, while constants remain unchanged. It also outlines basic data types, including integers, characters, floats, and strings, along with their respective ranges. This foundational knowledge is essential for understanding data handling in programming.

Uploaded by

booba3205
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

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

You might also like