Data Types
Declaring Variables: DataType variableName = value; Examples: string mySchool = "Pacific Hills Christian School"; int myPostcode = 2158; bool gameOver = false; Type Conversion Methods
Example: playerguess = Convert.ToInt32(Console.ReadLine()); Arrays
Examples: Declaring: string[] PHCS = {"Quarry Rd", "Dural"}; Assigning PHCS[0] = "9-14 Quarry Rd" Accessing Console.WriteLine(PHCS[1]) |
Statements
Logical Operators
Arithmetic Operators
Comparison Operators
|
Cheatography
https://cheatography.com
Created By
Metadata
Favourited By
Comments
No comments yet. Add yours below!
Add a Comment
Related Cheat Sheets