A WINDOW which users can interact with in a system program
console
Used for user and computer interaction
I/O statement
write text without adding a newline
Console.Write
write text and adds a new line
Console.WriteLine
means combining two strings and returns as a result of a new string
concatenation
It can be composed of an output text followed by a variable then another output text
mixed string concatenation
read only single character
Console.Read
read a line or string
Console.ReadLine
read the key pressed
Console.ReadKey
-A programmer-defined word that holds the value of the user
-Also saves a portion of the memory to store a determined value
Variables
Rules in declaring variables
(valid or invalid)
D-whiz
invalid
(valid or invalid)
enjoy
valid
(valid or invalid)
@boss
invalid
(valid or invalid)
_10ict
valid
(valid or invalid)
1st quarter
invalid
An expression with a fixed value that cannot be changed at runtime
constant
what keyword do you use to declare a constant
const
There are ____________ in C# that when preceded by the backslash ( \ ) symbol, have special meaning
character constants
Used as particular values within the source code of a program
literals
Are constant and are also called decimal numerals
Examples:
2354
612
18
29
integer literals
Are numbers with decimal, fractions, and/or exponents
Examples:
3.14159
6.02e23
floating point literals
Non numerical constant
character and string literals
single character [literal]
character literal