3 Cs115c - Computer Programming Introduction
3 Cs115c - Computer Programming Introduction
PROGRAMMING
Primitive
Types and Variables
TOPIC OUTLINE
• Variables
• Primitive Data Types
• Major sets of Data Types
sbyte
https://www.rapidtables.com/code/text/unicode-characters.html
08/07/2023 COLLEGE OF ENGINEERING AND INFORMATION TECHNOLOGY 18
BOOLEAN
• Boolean data type has two possible values: true or false
• Default value: false
Categories
Expected output:
The sum of 1, 2, 3, 4, 5, 6, 7, 8,9 and 10 is: 55
The product of 1, 2, 3, 4, 5, 6, 7, 8,9 and 10 is: 3,628,800
--------------------------------------------------
The difference of 1 and 9 is: -8
--------------------------------------------------
The average is: 5.5