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

Understanding Variables and Data Types

The document discusses algorithm design and problem solving, focusing on the declaration and usage of variables and constants in programming. It defines variables as data that can change during program execution and constants as unchanging data. Additionally, it outlines basic data types including Integer, Real, Char, String, and Boolean.

Uploaded by

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

Understanding Variables and Data Types

The document discusses algorithm design and problem solving, focusing on the declaration and usage of variables and constants in programming. It defines variables as data that can change during program execution and constants as unchanging data. Additionally, it outlines basic data types including Integer, Real, Char, String, and Boolean.

Uploaded by

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

Algorithm design and

problem solving (part 2)


14 – November – 2024
By Mrs. Omema Humza
Pseudo code
• Declaration & Usage of Variables & Constants
• Variable – Store of data which changes during execution of the program (due
to user input)
• Constant – Store of data that remains the same during the execution of the
program
• Basic Data Types
• Integer – Whole Number e.g. 2; 8; 100
• Real – Decimal Number e.g. 7.00; 5.64
• Char – Single Character e.g. a; Y
• String – Multiple Characters (Text) e.g. ZNotes; COOL
• Boolean – Only 2 Values e.g. True/False; Yes/No; 0/1

You might also like