- Get started by writing code examples to learn the basics of the C# syntax.
After you complete this module, you'll be able to:
Write your first lines of C# code
Use two different techniques to print a message to a text console
Diagnose errors when you type code incorrectly
Identify different C# syntax elements like operators, classes, and methods
- Use data in your applications by creating literal values and variable values of different data types.
After you complete this module, you'll be able to:
Create literal values for five basic data types
Declare and initialize variables
Retrieve and set values in variables
Allow the compiler to determine the data type for your variable when initializing
- Combine literal and variable text data that contain special characters, formatting, and Unicode into meaningful messages for the end user.
After you complete this module, you'll be able to:
Create string data containing tabs, new lines, and other special characters
Create string data containing Unicode characters
Combine string data into a new string value via concatenation
Combine string data into a new string value via interpolation
- Learn the operators and techniques used to perform basic math operations on numeric data.
After you complete this module, you'll be able to:
Perform mathematical operations on numeric values
Observe implicit type conversion between strings and numeric values
Temporarily convert one data type into another
- Learn to develop an application that will calculate and display results based on given data.
After you complete this module, you'll be able to:
- Learn to develop basic applications by breaking down the work into smaller parts.
- Identify appropriate data types for storing and working with variables.
- Perform mathematical operations to determine results.
- Apply formatting techniques to display output.
- Gain experience developing an application that will calculate and display results based on given data.
After you complete this module, you'll be able to:
Learn to develop basic applications by breaking down the work into smaller parts.
Identify appropriate data types for storing and working with variables.
Perform mathematical operations to determine results.
Apply formatting techniques to display output.
AI Engineer - Learn how to integrate AI into software applications
35% Off Finance Skills That Get You Hired - Code CFI35
Overview
Coursera Flash Sale
40% Off Coursera Plus for 3 Months!
Grab it
Syllabus
- Write your first C# code
- Introduction
- Exercise - Write your first code
- Learn how it works
- Complete the challenge
- Review the solution
- Module assessment
- Summary
- Store and retrieve data using literal and variable values in C#
- Introduction
- Exercise - Print literal values
- Declare variables
- Exercise - Setting and getting values from variables
- Declare implicitly typed local variables
- Complete the challenge
- Review the solution
- Module assessment
- Summary
- Perform basic string formatting in C#
- Introduction
- Exercise - Combine strings using character escape sequences
- Exercise - Combine strings using string concatenation
- Exercise - Combine strings using string interpolation
- Complete the challenge
- Review the solution
- Module assessment
- Summary
- Perform basic operations on numbers in C#
- Introduction
- Exercise - Perform addition with implicit data conversion
- Exercise - Perform math operations
- Exercise - Increment and decrement values
- Complete the challenge to convert Fahrenheit to Celsius
- Review the solution to convert Fahrenheit to Celsius
- Module assessment
- Summary
- Guided project - Calculate and print student grades
- Introduction
- Prepare for guided project
- Exercise - Calculate the sum of each student's assignment scores
- Exercise - Calculate the average of the student's assignment scores
- Exercise - Format the output using escaped character sequences
- Module assessment
- Summary
- Guided project - Calculate final GPA
- Introduction
- Prepare for guided project
- Exercise - Store the numeric grade values for each course
- Exercise - Calculate the sums of credit hours and grade points
- Exercise - Format the decimal output
- Exercise - Format the output using escaped character sequences
- Module assessment
- Summary
Tags
Reviews
4.8 rating, based on 4 Class Central reviews
Showing Class Central Sort
-
Great course for beginners! I learnt it from this course many things about C#.Now, I can begin my learning journey about C# and more.…
-
I recently started the "Write your first code using C# (Get started with C#, Part 1)" course on Microsoft Learn, and it has been a fantastic introduction to C#. The course content is well-structured and easy to follow, making it perfect for beginners. The interactive exercises and step-by-step guidance have helped me grasp the basics of C# programming quickly. I appreciate the practical examples and the clear explanations provided by the instructors. Overall, this course is an excellent starting point for anyone looking to learn C#. Highly recommended!
-
the course was very nice, it was very useful especially for the beginners, thanks to everyone who contributed
-
IT GIVE KNOWLEDGE IN A SIMPLE MANNERDS AND HELPS A LOT TO LEARN BASIC CONCEPTS
..........................................................................................................................................................................................