- C#
- Beginner
About this Course
C# is the most popular programming language in the Microsoft ecosystem of products. C# code is designed to run fast and to be easily maintainable. In C# Basics, we'll learn how to work with C# to write simple programs.
What you'll learn
- C# syntax
- Types
- Strings
- Numbers
- If statements
C# Syntax
Before we can write C# programs, we need to understand variables and types. This stage will get you started.
14 stepsMethods
This stage will teach you how to do work by calling methods, and how to define your own!
13 steps-
Methods
6:24
-
Defining methods
4:14
-
Methods
7 questions
-
Variable Scope
3:17
-
Defining a Method
1 objective
-
Method Arguments
4:30
-
Method Return Values
6:30
-
The Difference Between Printing and Returning
1:42
-
Variable Scope and Method Arguments
5 questions
-
Returning a Value from the Ask Method
3:30
-
Method Parameters
1 objective
-
Return Values
5 questions
-
Return Values
1 objective
Strings
Whether it's written in C# or another language, almost all software needs to work with text. Programming languages represent text in the form of strings.
7 stepsNumbers
Programming languages use strings a lot, but they use numbers even more often. Almost any language will let you do addition, subtraction, multiplication, division, and many other math operations. And C# is no exception.
6 stepsIf Statements
Our last requirement is to provide a discount for large orders of cans. But how do we determine which discount to apply?
7 stepsTeacher
-
Jay McGavren
Resident Ruby and Go teacher for Treehouse. Author of Head First Ruby, a tutorial book on the core Ruby language.