Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
More on C#
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Ram Sapkota
October 25, 2018
200
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
More on C#
Ram Sapkota
October 25, 2018
Transcript
24 slides
Variables in C# It’s a container where you can
store a specific data value.
Data Types - In common String ,Char, Int, Double
, bool DateTime
String manipulation
Something More
Now, lets interact!!
Type conversions ToBoolean ToByte ToChar ToDateTime
ToDecimal ToDouble ToInt16 ToInt32 ToString
Exercise : Make a basic calculator Input two numbers
from user and perform addition and subtraction. If possible add decimal number with a normal number.
Mad Libs Game
Array
Methods It is a block of code where we
preform a specific task.
Something Interesting to deal with Signature of method
Method overloading Params modifiers
Signature of method Name Number and Type of
parameters
Overloading methods Having a method with same name but
with different signatures
None
The params modifier
Exercise Create a program to print cube of any
number
Conditional operator And Or Not equals
Equals Greater than, less than Greater than and equals to Less than and equals to And their meaningful use
If Statement
If else statement
If else if
Exercise Write a program to two numbers from user
and display the max number.
Exercise Write a program to input marks of 5
different subjects as Math, Science, English, Nepali and Computer assuming their full marks is 100. Also calculate percentage obtained and division earned.
Switch Statement
While Loop
More Decks by Ram Sapkota
See All by Ram Sapkota
Static Class Attributes and Inheritance
codemasterram
2
180
Class & Object
codemasterram
0
130
Part 3: More on C#
codemasterram
0
70
HTML & CSS: Lesson 2.2
codemasterram
1
92
Introduction to C#
codemasterram
1
67
HTML___CSS__Lesson_2.1.pdf
codemasterram
0
78
Basic Concept on HTML and CSS
codemasterram
1
83
Introduction_class_slide.pdf
codemasterram
0
59
Featured
See All Featured
What’s in a name? Adding method to the madness
productmarketing
PRO
24
4.2k
Building a A Zero-Code AI SEO Workflow
portentint
PRO
0
850
Kristin Tynski - Automating Marketing Tasks With AI
techseoconnect
PRO
0
600
How to Align SEO within the Product Triangle To Get Buy-In & Support - #RIMC
aleyda
2
1.9k
jQuery: Nuts, Bolts and Bling
dougneiner
66
8.7k
<Decoding/> the Language of Devs - We Love SEO 2024
nikkihalliwell
1
380
Measuring Dark Social's Impact On Conversion and Attribution
stephenakadiri
2
340
Visualization
eitanlees
153
17k
Writing Fast Ruby
sferik
630
63k
ピンチをチャンスに:未来をつくるプロダクトロードマップ #pmconf2020
aki_iinuma
128
56k
Deep Space Network (abreviated)
tonyrice
0
430
brightonSEO & MeasureFest 2025 - Winning Strategies for Black Friday CRO & PPC - Christian Goodrich
cargoodrich
3
910