Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
More on C#
Search
Ram Sapkota
October 25, 2018
190
0
Share
More on C#
Ram Sapkota
October 25, 2018
More Decks by Ram Sapkota
See All by Ram Sapkota
Static Class Attributes and Inheritance
codemasterram
2
160
Class & Object
codemasterram
0
120
Part 3: More on C#
codemasterram
0
62
HTML & CSS: Lesson 2.2
codemasterram
1
84
Introduction to C#
codemasterram
1
60
HTML___CSS__Lesson_2.1.pdf
codemasterram
0
64
Basic Concept on HTML and CSS
codemasterram
1
70
Introduction_class_slide.pdf
codemasterram
0
53
Featured
See All Featured
Ecommerce SEO: The Keys for Success Now & Beyond - #SERPConf2024
aleyda
1
1.9k
Building Better People: How to give real-time feedback that sticks.
wjessup
370
20k
Jess Joyce - The Pitfalls of Following Frameworks
techseoconnect
PRO
1
130
End of SEO as We Know It (SMX Advanced Version)
ipullrank
3
4.1k
Neural Spatial Audio Processing for Sound Field Analysis and Control
skoyamalab
0
250
GraphQLとの向き合い方2022年版
quramy
50
14k
What's in a price? How to price your products and services
michaelherold
247
13k
Dominate Local Search Results - an insider guide to GBP, reviews, and Local SEO
greggifford
PRO
0
130
The B2B funnel & how to create a winning content strategy
katarinadahlin
PRO
1
330
A Soul's Torment
seathinner
6
2.6k
We Analyzed 250 Million AI Search Results: Here's What I Found
joshbly
1
1.1k
Bootstrapping a Software Product
garrettdimon
PRO
307
120k
Transcript
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