www.w3schools.com Open in urlscan Pro
192.229.133.221  Public Scan

URL: https://www.w3schools.com/cs/cs_getstarted.php
Submission: On March 16 via api from US — Scanned from DE

Form analysis 0 forms found in the DOM

Text Content

Tutorials Exercises Certificates Services
Menu
Search field

×

Log in Sign Up ★ +1 My W3Schools Get Certified Spaces Set Goal Get Certified
Spaces Set Goal
My W3Schools
Tutorials
 
Exercises
 
Certificates
 
Services
 
Spaces Get Certified Set Goal Logout

×


TUTORIALS

Tutorials filter input
×


HTML AND CSS

Learn HTML Tutorial Reference
Learn CSS Tutorial Reference
Learn RWD Tutorial
Learn Bootstrap Overview
Learn W3.CSS Tutorial Reference
Learn Sass Tutorial Reference
Learn Colors Tutorial Reference
Learn Icons Tutorial Reference
Learn SVG Tutorial Reference
Learn Canvas Tutorial Reference
Learn Graphics Tutorial
Learn Character Sets Reference
Learn How To Tutorial


DATA ANALYTICS

Learn AI Tutorial
Learn Generative AI Tutorial
Learn ChatGPT-3.5 Tutorial
Learn ChatGPT-4 Tutorial
Learn Google Bard Tutorial
Learn Machine Learning Tutorial
Learn DSA Tutorial
Learn Data Science Tutorial
Learn NumPy Tutorial
Learn Pandas Tutorial
Learn SciPy Tutorial
Learn Matplotlib Tutorial
Learn Statistics Tutorial
Learn Excel Tutorial
Learn Google Sheets Tutorial


WEB BUILDING

Create a Website HOT!
Create a Server NEW
Where To Start
Web Templates
Web Statistics
Web Certificates
Web Development
Code Editor
Test Your Typing Speed
Play a Code Game
Cyber Security
Accessibility
Join our Newsletter


JAVASCRIPT

Learn JavaScript Tutorial Reference
Learn React Tutorial
Learn jQuery Tutorial Reference
Learn Vue Tutorial Reference
Learn AngularJS Tutorial Reference
Learn JSON Tutorial Reference
Learn AJAX Tutorial
Learn AppML Tutorial Reference
Learn W3.JS Tutorial Reference


WEB BUILDING

Create a Website HOT!
Create a Server NEW
Where To Start
Web Templates
Web Statistics
Web Certificates
Web Development
Code Editor
Test Your Typing Speed
Play a Code Game
Cyber Security
Accessibility
Join our Newsletter


BACKEND

Learn Python Tutorial Reference
Learn SQL Tutorial Reference
Learn MySQL Tutorial Reference
Learn PHP Tutorial Reference
Learn Java Tutorial Reference
Learn C Tutorial
Learn C++ Tutorial
Learn C# Tutorial
Learn R Tutorial
Learn Kotlin Tutorial
Learn Go Tutorial
Learn Django Tutorial Reference
Learn PostgreSQL Tutorial
Learn TypeScript Tutorial
Learn ASP Tutorial Reference
Learn Node.js Tutorial Reference
Learn Raspberry Pi Tutorial
Learn Git Tutorial
Learn MongoDB Tutorial
Learn AWS Cloud Tutorial
Learn XML Tutorial Reference


DATA ANALYTICS

Learn AI Tutorial
Learn Generative AI Tutorial
Learn ChatGPT-3.5 Tutorial
Learn ChatGPT-4 Tutorial
Learn Google Bard Tutorial
Learn Machine Learning Tutorial
Learn DSA Tutorial
Learn Data Science Tutorial
Learn NumPy Tutorial
Learn Pandas Tutorial
Learn SciPy Tutorial
Learn Matplotlib Tutorial
Learn Statistics Tutorial
Learn Excel Tutorial
Learn Google Sheets Tutorial


WEB BUILDING

Create a Website HOT!
Create a Server NEW
Where To Start
Web Templates
Web Statistics
Web Certificates
Web Development
Code Editor
Test Your Typing Speed
Play a Code Game
Cyber Security
Accessibility
Join our Newsletter

×


EXERCISES

Excercises filter input
×


HTML AND CSS

HTML Exercise Quiz
CSS Exercise Quiz
Bootstrap Exercise Quiz


DATA ANALYTICS

DSA Exercise Quiz
NumPy Exercise Quiz
Pandas Exercise Quiz
SciPy Exercise Quiz
Excel Exercise
What is an Exercise? What is a Quiz?


JAVASCRIPT

JavaScript Exercise Quiz
React Exercise Quiz
jQuery Exercise Quiz
Vue Exercise Quiz


BACKEND

Python Exercise Quiz
SQL Exercise Quiz
MySQL Exercise Quiz
PHP Exercise Quiz
Java Exercise Quiz
C Exercise Quiz
C++ Exercise Quiz
C# Exercise Quiz
R Exercise Quiz
Kotlin Exercise Quiz
Django Exercise Quiz
PostgreSQL Exercise Quiz
TypeScript Exercise Quiz
Git Exercise Quiz
Go Exercise
MongoDB Exercise
AWS Cloud Exercise Quiz


DATA ANALYTICS

DSA Exercise Quiz
NumPy Exercise Quiz
Pandas Exercise Quiz
SciPy Exercise Quiz
Excel Exercise
What is an Exercise? What is a Quiz?

×


CERTIFICATES

Filter field for certifications
×


HTML AND CSS

HTML Certificate Course
CSS Certificate Course
Bootstrap 3 Certificate Course
Bootstrap 4 Certificate Course
Bootstrap 5 Certificate


DATA ANALYTICS

Data Analytics Course
NumPy Certificate Course
Pandas Certificate Course
Excel Certificate
Social Media Course
What is a Certificate?


PROGRAMS

Full Access Best Value!
Front End Certificate Course
Web Dev. Certificate Course
Web App Certificate Course
Web Design Certificate Course


JAVASCRIPT

JavaScript Certificate Course
React Certificate Course
jQuery Certificate Course
Vue Certificate


PROGRAMS

Full Access Best Value!
Front End Certificate Course
Web Dev. Certificate Course
Web App Certificate Course
Web Design Certificate Course


PROGRAMS

Full Access Best Value!
Front End Certificate Course
Web Dev. Certificate Course
Web App Certificate Course
Web Design Certificate Course




BACKEND

Python Certificate Course
SQL Certificate Course
MySQL Certificate
PHP Certificate Course
Java Certificate Course
C Certificate
C++ Certificate Course
C# Certificate Course
R Course
Django Certificate
TypeScript Certificate Course
XML Certificate Course
Cyber Security Certificate Course
Accessibility Certificate Course
Python Apps on AWS Course
AWS Training Courses


DATA ANALYTICS

Data Analytics Course
NumPy Course
Pandas Course
Excel Certificate
Social Media Course
What is a Certificate?

×


ALL OUR SERVICES

Services filter input
×

W3Schools offers a wide range of services and products for beginners and
professionals,
helping millions of people everyday to learn and master new skills.

FREE TUTORIALS

Enjoy our free tutorials like millions of other internet users since 1999

REFERENCES

Explore our selection of references covering all popular coding languages

CREATE A WEBSITE

Create your own website with W3Schools Spaces - no setup required

EXERCISES

Test your skills with different exercises

QUIZZES

Test yourself with multiple choice questions

GET CERTIFIED

Document your knowledge

LOG IN / SIGN UP

Create a free W3Schools Account to Improve Your Learning Experience

MY LEARNING

Track your learning progress at W3Schools and collect rewards

UPGRADE

Become a PRO user and unlock powerful features (ad-free, hosting, videos,..)

WHERE TO START

Not sure where you want to start? Follow our guided path

CODE EDITOR (TRY IT)

With our online code editor, you can edit code and view the result in your
browser

VIDEOS

Learn the basics of HTML in a fun and engaging video tutorial

TEMPLATES

We have created a bunch of responsive website templates you can use - for free!

WEB HOSTING

Host your own website, and share it to the world with W3Schools Spaces

CREATE A SERVER

Create your own server using Python, PHP, React.js, Node.js, Java, C#, etc.

HOW TO'S

Large collection of code snippets for HTML, CSS and JavaScript

CSS FRAMEWORK

Build fast and responsive sites using our free W3.CSS framework

BROWSER STATISTICS

Read long term trends of browser usage

TYPING SPEED

Test your typing speed

AWS TRAINING

Learn Amazon Web Services

COLOR PICKER

Use our color picker to find different RGB, HEX and HSL colors.

CODE GAME

W3Schools Coding Game! Help the lynx collect pine cones

SET GOAL

Get personalized learning journey based on your current skills and goals

NEWSLETTER

Join our newsletter and get access to exclusive content every month


×

   ❮   

HTML CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO W3.CSS C C++ C# BOOTSTRAP REACT
MYSQL JQUERY EXCEL XML DJANGO NUMPY PANDAS NODEJS R TYPESCRIPT ANGULAR GIT
POSTGRESQL MONGODB ASP AI GO KOTLIN SASS VUE DSA GEN AI SCIPY AWS CYBERSECURITY
DATA SCIENCE
     ❯   


C# TUTORIAL

C# HOME C# Intro C# Get Started C# Syntax C# Output C# Comments C# Variables
Variables Constants Display Variables Multiple Variables Identifiers
C# Data Types C# Type Casting C# User Input C# Operators
Arithmetic Assignment Comparison Logical
C# Math C# Strings
Strings Concatenation Interpolation Access Strings Special Characters
C# Booleans C# If...Else
if else else if Short hand if..else
C# Switch C# While Loop C# For Loop
For loop Foreach loop
C# Break/Continue C# Arrays
Arrays Loop through an array Sort arrays Multidimensional arrays



C# METHODS

C# Methods C# Method Parameters
Parameters & Arguments Default Parameter Return Values Named Arguments
C# Method Overloading



C# CLASSES

C# OOP C# Classes/Objects
Classes and Objects Multiple Objects
C# Class Members C# Constructors C# Access Modifiers C# Properties C#
Inheritance C# Polymorphism C# Abstraction C# Interface
Interface Multiple Interfaces
C# Enums C# Files C# Exceptions



C# HOW TO

Add Two Numbers



C# EXAMPLES

C# Examples C# Compiler C# Exercises C# Quiz C# Server C# Certificate





C# GET STARTED

❮ Previous Next ❯

--------------------------------------------------------------------------------


C# IDE

The easiest way to get started with C# is to use an IDE.

An IDE (Integrated Development Environment) is used to edit and compile code.

In our tutorial, we will use Visual Studio Community, which is free to download
from https://visualstudio.microsoft.com/vs/community/.

Applications written in C# use the .NET Framework, so it makes sense to use
Visual Studio, as the program, the framework, and the language, are all created
by Microsoft.

--------------------------------------------------------------------------------


C# INSTALL

Once the Visual Studio Installer is downloaded and installed, choose the .NET
workload and click on the Modify/Install button:

After the installation is complete, click on the Launch button to get started
with Visual Studio.

On the start window, choose Create a new project:

Then click on the "Install more tools and features" link:

Choose "Console App (.NET Core)" from the list and click on the Next button:

Enter a name for your project, and click on the Create button:

Visual Studio will automatically generate some code for your project:

The code should look something like this:

PROGRAM.CS

using System;

namespace HelloWorld
{
  class Program
  {
    static void Main(string[] args)
    {
      Console.WriteLine("Hello World!");    
    }
  }
}

Try it Yourself »

Don't worry if you don't understand the code above - we will discuss it in
detail in later chapters. For now, focus on how to run the code.

Run the program by pressing the F5 button on your keyboard (or click on "Debug"
-> "Start Debugging"). This will compile and execute your code. The result will
look something to this:

Hello World!
C:\Users\Username\source\repos\HelloWorld\HelloWorld\bin\Debug\netcoreapp3.0\HelloWorld.exe
(process 13784) exited with code 0.
To automatically close the console when debugging stops, enable
Tools->Options->Debugging->Automatically close the console when debugging stops.
Press any key to close this window . . .

Congratulations! You have now written and executed your first C# program.

--------------------------------------------------------------------------------


LEARNING C# AT W3SCHOOLS

When learning C# at W3Schools.com, you can use our "Try it Yourself" tool, which
shows both the code and the result. This will make it easier for you to
understand every part as we move forward:

PROGRAM.CS

using System;

namespace HelloWorld
{
  class Program
  {
    static void Main(string[] args)
    {
      Console.WriteLine("Hello World!");    
    }
  }
}

Result:

Hello World!

Try it Yourself »


❮ Previous Next ❯
★ +1
 
W3schools Pathfinder
Track your progress - it's free!
 
Log in Sign Up

COLOR PICKER





--------------------------------------------------------------------------------


SPACES
UPGRADE
AD-FREE
NEWSLETTER
GET CERTIFIED
REPORT ERROR
×


REPORT ERROR

If you want to report an error, or if you want to make a suggestion, do not
hesitate to send us an e-mail:

help@w3schools.com


TOP TUTORIALS

HTML Tutorial
CSS Tutorial
JavaScript Tutorial
How To Tutorial
SQL Tutorial
Python Tutorial
W3.CSS Tutorial
Bootstrap Tutorial
PHP Tutorial
Java Tutorial
C++ Tutorial
jQuery Tutorial


TOP REFERENCES

HTML Reference
CSS Reference
JavaScript Reference
SQL Reference
Python Reference
W3.CSS Reference
Bootstrap Reference
PHP Reference
HTML Colors
Java Reference
Angular Reference
jQuery Reference


TOP EXAMPLES

HTML Examples
CSS Examples
JavaScript Examples
How To Examples
SQL Examples
Python Examples
W3.CSS Examples
Bootstrap Examples
PHP Examples
Java Examples
XML Examples
jQuery Examples


GET CERTIFIED

HTML Certificate
CSS Certificate
JavaScript Certificate
Front End Certificate
SQL Certificate
Python Certificate
PHP Certificate
jQuery Certificate
Java Certificate
C++ Certificate
C# Certificate
XML Certificate

   

FORUM ABOUT
W3Schools is optimized for learning and training. Examples might be simplified
to improve reading and learning.
Tutorials, references, and examples are constantly reviewed to avoid errors, but
we cannot warrant full correctness
of all content. While using W3Schools, you agree to have read and accepted our
terms of use, cookie and privacy policy.

Copyright 1999-2024 by Refsnes Data. All Rights Reserved. W3Schools is Powered
by W3.CSS.




WE CARE ABOUT YOUR PRIVACY!

When visiting our site, pre-selected companies may access and use certain
information on your device and about this web page to serve relevant ads or
personalised content. Please note that ads help keep our service free. Personal
data will be processed based on consent in accordance with Art.6(1)(a) of the
GDPR framework in EU law, or as legitimate interest in accordance with
Art.6(1)(f) of the same.


LEARN MORE WHY YOU ARE SEEING THIS

We, the 'Publisher', and a select group of trusted partners (809), known as
'Vendors', need your consent for data-processing purposes. These purposes
include to store and/or access information on a device, like cookie management
and to process personal data such as standard information sent by a device and
other unique identifiers for personalised ads and content, ad and content
measurement, audience insights and product development. With your consent we and
our partners may use precise geolocation data and actively scan device
characteristics for identification.

You may consent to the processing described above or access more detailed
information and customise your choices. The given consent will apply to this
site only. Please take into consideration that some of your personal data
processing may rely on legitimate interest which does not require your consent
but you have a right to object to this.

You can always edit your preferences at any time in our site’s privacy policy
page.

Customise choices
Accept all & visit the site