Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

clear and complete guide for c sharp, Summaries of Computer Programming

A tutorial for beginners on C# programming language. It covers the basics of programming and teaches how to write a C# program. The tutorial also explains the use of console and how to keep the window up. useful for those who want to learn C# programming language.

Typology: Summaries

2021/2022

Available from 04/23/2023

aditya-raveendran
aditya-raveendran 🇮🇳

1 document

1 / 2

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
C# Tutorial - Full Course for Beginners
freeCodeCamp.org
C sharp is an extremely powerful programming language. It
's used in millions of applications around the world.. There
are literally 1000s of things you can do with C Sharp.. And I
'm excited to be bringing you guys a course that will teach
you everything you need to know to get started. SO we 're
going to start the course with the basics of programming..
There's an option to download on Windows. And then there
's also an option for download on MAc over here. SO click
this and that should start downloading and we should get an
installer that we can use to install Visual Studio. SO once
that 's downloaded, I 'm just gon na click it. And we 'll go
ahead and run this installer. TO get started with C Sharp
development. development. And this tutorial, I 'm going to
show you guys how to write your first C-sharp program.
We're basically given this little text file, and this is a C-sharp
file.. And. It 's sort of like the template for a program. And do
n't worry too much about what all this stuff is. And I know
there 's a lot of stuff over here is this guy right here,
program. cs..
There 's some things that we 're going to have to use with C
sharp and up here, we can specify that we want to use
them. But for the most part, you do N't really have to worry
too much about what this stuff is up here. Just make sure
that you leave it alone. We 're going to talk more about
methods and functions later. In the course. But. This is sort
of just like another container where we can put code. SO.
Whatever code I want my program to have, I need to put it
inside of this main method. SO inside of these open and
closed curly brackets. Now, I understand that a lot of this
stuff does N't make sense right now. C sharp is basically
telling the computer to write a line out onto the console..
The console is basically just a little. Little window where we
can see the output of our program. I 'm saying console dot
write line. And inside of these parentheses, I'm specifying
what I want to write. And then over here, I ''m putting this
semi-colon. And as a beginner, you're going to forget to put
the semicolon trust me, everybody does..
THe problem is that our program is printing that out, and
then the program is terminating. SO that window is going
away. IN order to keep that window up, I 'm going to type
pf2

Partial preview of the text

Download clear and complete guide for c sharp and more Summaries Computer Programming in PDF only on Docsity!

C# Tutorial - Full Course for Beginners

freeCodeCamp.org C sharp is an extremely powerful programming language. It 's used in millions of applications around the world.. There are literally 1000s of things you can do with C Sharp.. And I 'm excited to be bringing you guys a course that will teach you everything you need to know to get started. SO we 're going to start the course with the basics of programming.. There's an option to download on Windows. And then there 's also an option for download on MAc over here. SO click this and that should start downloading and we should get an installer that we can use to install Visual Studio. SO once that 's downloaded, I 'm just gon na click it. And we 'll go ahead and run this installer. TO get started with C Sharp development. development. And this tutorial, I 'm going to show you guys how to write your first C-sharp program. We're basically given this little text file, and this is a C-sharp file.. And. It 's sort of like the template for a program. And do n't worry too much about what all this stuff is. And I know there 's a lot of stuff over here is this guy right here, program. cs.. There 's some things that we 're going to have to use with C sharp and up here, we can specify that we want to use them. But for the most part, you do N't really have to worry too much about what this stuff is up here. Just make sure that you leave it alone. We 're going to talk more about methods and functions later. In the course. But. This is sort of just like another container where we can put code. SO. Whatever code I want my program to have, I need to put it inside of this main method. SO inside of these open and closed curly brackets. Now, I understand that a lot of this stuff does N't make sense right now. C sharp is basically telling the computer to write a line out onto the console.. The console is basically just a little. Little window where we can see the output of our program. I 'm saying console dot write line. And inside of these parentheses, I'm specifying what I want to write. And then over here, I ''m putting this semi-colon. And as a beginner, you're going to forget to put the semicolon trust me, everybody does.. THe problem is that our program is printing that out, and then the program is terminating. SO that window is going away. IN order to keep that window up, I 'm going to type

out another line of code. ANd basically what this code is going to do is it will keep that little console window up until I enter in a line of text. This is sort of our first C sharp instruction. Now that we know how to print out something onto the screen, I want to show you how we can draw a little shape.. IN each one of these instructions, I'm telling the computer to write out a different line. SO you can see I 'm saying Console dot write line. And you'll see over here, we 're actually able to print out this entire triangle. SO just by using that one instruction consoledot. instruction Consoledot write line instruction, I was able to draw out an entire shape onto the screen.. A program is essentially just a set of instructions that the computer is going to follow the order of those instructions matter.. IN C sharp, we have a special container called a variable.. ANd. A variable is basically just a container where we can store some of that data. So. In this tutorial, I 'm Gon na show you guys what variables are and why they're useful. And. We 'll look at kind of how we can work with them in our C sharp programs.