Professional Documents
Culture Documents
Literal Constants
Literal constants can be :
Integer numerals
Floating-point numerals
Characters
Strings
Boolean values
Integer numerals
Integer numerals are constant and are also called Decimal numerals.
For Example:
235
612
18
29
Floating-point numerals
Floating-point numerals are numbers with decimals, fraction, and/or exponents.
For example:
3.14159 // 3.14159
6.02e23 // 6.02 x 10 ^23
Boolean Literals
Boolean Literals can have either a true or false.
Example:
<< true << '\n‘
false << '\n‘
Output:
True-1
False-0
Group
Report
Submitted by: Group 3
Members:
Kahn Xavier Nathaniel Domingo
John Benedict Alcantara
Lance Tristan Belen
John Michael Ilagan
Abigail Daaca
Rein Julien Tandang
Angela Kate Bundalian
Juliann Fandialan
Trisha Marie Pacia
Daniel Luis Codilla
Programming
Using Visual
Studio