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
0
180
More on C#
Ram Sapkota
October 25, 2018
Tweet
Share
More Decks by Ram Sapkota
See All by Ram Sapkota
Static Class Attributes and Inheritance
codemasterram
2
150
Class & Object
codemasterram
0
110
Part 3: More on C#
codemasterram
0
58
HTML & CSS: Lesson 2.2
codemasterram
1
81
Introduction to C#
codemasterram
1
56
HTML___CSS__Lesson_2.1.pdf
codemasterram
0
58
Basic Concept on HTML and CSS
codemasterram
1
65
Introduction_class_slide.pdf
codemasterram
0
47
Featured
See All Featured
Put a Button on it: Removing Barriers to Going Fast.
kastner
60
3.9k
Done Done
chrislema
185
16k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
110
19k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
46
7.6k
Speed Design
sergeychernyshev
32
1.1k
VelocityConf: Rendering Performance Case Studies
addyosmani
332
24k
Docker and Python
trallard
45
3.5k
A better future with KSS
kneath
239
17k
Agile that works and the tools we love
rasmusluckow
329
21k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
656
60k
Visualization
eitanlees
146
16k
Why You Should Never Use an ORM
jnunemaker
PRO
58
9.5k
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