SlideShare a Scribd company logo
Variable  C# - Lec5 (Workshop on C# Programming: Learn to Build)
C#
Day 1
Lecture2: Variable
Variable Declaration
<data type> <variable name>;
Variable Declaration
int number;
 float num;
 char alp;
 bool value;
 string text;
Variable Initialization
<data type> <variable name> = <value> ;
Variable Initialization
int number = 10;
Console.WriteLine(number);
Console.ReadKey();
Variable Initialization
float num = 10.06f;
Console.WriteLine(num);
Console.ReadKey();
Variable Initialization
char alp = 'A';
Console.WriteLine(alp);
Console.ReadKey();
Variable Initialization
bool value = true;
Console.WriteLine(value);
Console.ReadKey();
Variable Initialization
string text = "Hello Universe!";
Console.WriteLine(text);
Console.ReadKey();
Variable
int i = 100;
int j = i;
Console.WriteLine(j);
Console.ReadKey();
- What will be the output?
Variable
int i;
int j = i;
Console.WriteLine(j);
Console.ReadKey();
- What will be the output?
This slide is provided as a course material in the workshop named
“Workshop on C# Programming: Learn to Build”.
Organized by-
East West University Computer Programming Club (EWUCoPC)
Prepared by-
Jannat Binta Alam
Campus Ambassador
Young Engineers Society (YES)
E-mail: jannat.cse.ewu@gmail.com

More Related Content

What's hot (20)

PDF
Project_Euler_No_104_Pandigital_Fibonacci_ends
? ?
 
PDF
JavaScript - Agora nervoso
Luis Vendrame
 
DOCX
Programa.eje
guapi387
 
DOCX
Array using recursion
Swarup Boro
 
PDF
C++ Programming - 3rd Study
Chris Ohk
 
PDF
Ooprc3c
Ankit Dubey
 
PDF
11 1 포인터
Changwon National University
 
PDF
Продвинутая отладка JavaScript с помощью Chrome Dev Tools
FDConf
 
PPTX
Cpp c++ 2
Sltnalt Cosmology
 
DOCX
Class array
nky92
 
DOCX
Tugas Program C++
Reynes E. Tekay
 
PDF
The Big Three
Roman Okolovich
 
DOCX
Tugas
andriarma
 
PDF
Bangalore Bio 2011 Finance And Investment In Biotech Press Release : Kapil Kh...
Kapil Khandelwal (KK)
 
DOCX
Assignement of programming & problem solving ass.(3)
Syed Umair
 
PDF
メディアアートにおけるプログラミング言語Rubyの役割
Koichiro Eto
 
PDF
2016 gunma.web games-and-asm.js
Noritada Shimizu
 
PDF
20151224-games
Noritada Shimizu
 
Project_Euler_No_104_Pandigital_Fibonacci_ends
? ?
 
JavaScript - Agora nervoso
Luis Vendrame
 
Programa.eje
guapi387
 
Array using recursion
Swarup Boro
 
C++ Programming - 3rd Study
Chris Ohk
 
Ooprc3c
Ankit Dubey
 
Продвинутая отладка JavaScript с помощью Chrome Dev Tools
FDConf
 
Class array
nky92
 
Tugas Program C++
Reynes E. Tekay
 
The Big Three
Roman Okolovich
 
Tugas
andriarma
 
Bangalore Bio 2011 Finance And Investment In Biotech Press Release : Kapil Kh...
Kapil Khandelwal (KK)
 
Assignement of programming & problem solving ass.(3)
Syed Umair
 
メディアアートにおけるプログラミング言語Rubyの役割
Koichiro Eto
 
2016 gunma.web games-and-asm.js
Noritada Shimizu
 
20151224-games
Noritada Shimizu
 

Similar to Variable C# - Lec5 (Workshop on C# Programming: Learn to Build) (20)

PPTX
Chapter i c#(console application and programming)
Chhom Karath
 
PPT
06 Loops
maznabili
 
PPTX
C# Today and Tomorrow
Bertrand Le Roy
 
PPT
C# Control Statements, For loop, Do While.ppt
Riannel Tecson
 
PDF
Algorithm and Programming (Looping Structure)
Adam Mukharil Bachtiar
 
PDF
Game Design and Development Workshop Day 1
Troy Miles
 
PDF
L5, Loop and iteration, CSE 202, BN11.pdf
SauravBarua11
 
PPT
Loops (1)
esmail said
 
PDF
09
liankei
 
PDF
Lo43
lksoo
 
ODP
null Pune meet - Application Security: Code injection
n|u - The Open Security Community
 
PDF
L8
lksoo
 
PPT
iOS Development with Blocks
Jeff Kelley
 
PDF
C librabry 55 functions.pdfljhghmhiguyftg
saimukesh19
 
PDF
Davide Cerbo - Kotlin: forse è la volta buona - Codemotion Milan 2017
Codemotion
 
PDF
Como NÃO testar o seu projeto de Software. DevDay 2014
alexandre freire
 
PDF
CP Handout#5
trupti1976
 
PPTX
Is your C# optimized
Woody Pewitt
 
PPTX
C# overview part 1
sagaroceanic11
 
PDF
C# What's next? (7.x and 8.0)
Christian Nagel
 
Chapter i c#(console application and programming)
Chhom Karath
 
06 Loops
maznabili
 
C# Today and Tomorrow
Bertrand Le Roy
 
C# Control Statements, For loop, Do While.ppt
Riannel Tecson
 
Algorithm and Programming (Looping Structure)
Adam Mukharil Bachtiar
 
Game Design and Development Workshop Day 1
Troy Miles
 
L5, Loop and iteration, CSE 202, BN11.pdf
SauravBarua11
 
Loops (1)
esmail said
 
Lo43
lksoo
 
null Pune meet - Application Security: Code injection
n|u - The Open Security Community
 
L8
lksoo
 
iOS Development with Blocks
Jeff Kelley
 
C librabry 55 functions.pdfljhghmhiguyftg
saimukesh19
 
Davide Cerbo - Kotlin: forse è la volta buona - Codemotion Milan 2017
Codemotion
 
Como NÃO testar o seu projeto de Software. DevDay 2014
alexandre freire
 
CP Handout#5
trupti1976
 
Is your C# optimized
Woody Pewitt
 
C# overview part 1
sagaroceanic11
 
C# What's next? (7.x and 8.0)
Christian Nagel
 
Ad

More from Jannat Ruma (8)

PPTX
Windows Form - Lec12 (Workshop on C# Programming: Learn to Build)
Jannat Ruma
 
PPTX
Class C# - Lec11 (Workshop on C# Programming: Learn to Build)
Jannat Ruma
 
PPTX
Method C# - Lec8 (Workshop on C# Programming: Learn to Build)
Jannat Ruma
 
PPTX
Decision Making C# - Lec6 (Workshop on C# Programming: Learn to Build)
Jannat Ruma
 
PPTX
Type Casting C# - Lec4 (Workshop on C# Programming: Learn to Build)
Jannat Ruma
 
PPTX
Operator C# - Lec3 (Workshop on C# Programming: Learn to Build)
Jannat Ruma
 
PPTX
Data Type C# - Lec2 (Workshop on C# Programming: Learn to Build)
Jannat Ruma
 
PPTX
C# Basic - Lec1 (Workshop on C# Programming: Learn to Build)
Jannat Ruma
 
Windows Form - Lec12 (Workshop on C# Programming: Learn to Build)
Jannat Ruma
 
Class C# - Lec11 (Workshop on C# Programming: Learn to Build)
Jannat Ruma
 
Method C# - Lec8 (Workshop on C# Programming: Learn to Build)
Jannat Ruma
 
Decision Making C# - Lec6 (Workshop on C# Programming: Learn to Build)
Jannat Ruma
 
Type Casting C# - Lec4 (Workshop on C# Programming: Learn to Build)
Jannat Ruma
 
Operator C# - Lec3 (Workshop on C# Programming: Learn to Build)
Jannat Ruma
 
Data Type C# - Lec2 (Workshop on C# Programming: Learn to Build)
Jannat Ruma
 
C# Basic - Lec1 (Workshop on C# Programming: Learn to Build)
Jannat Ruma
 
Ad

Recently uploaded (20)

PDF
Dimensions of Societal Planning in Commonism
StefanMz
 
PPTX
STAFF DEVELOPMENT AND WELFARE: MANAGEMENT
PRADEEP ABOTHU
 
PPTX
Cultivation practice of Litchi in Nepal.pptx
UmeshTimilsina1
 
PPTX
PPT-Q1-WEEK-3-SCIENCE-ERevised Matatag Grade 3.pptx
reijhongidayawan02
 
PPTX
Neurodivergent Friendly Schools - Slides from training session
Pooky Knightsmith
 
PPTX
Quarter 1_PPT_PE & HEALTH 8_WEEK 3-4.pptx
ronajadolpnhs
 
PDF
The Different Types of Non-Experimental Research
Thelma Villaflores
 
PDF
Stokey: A Jewish Village by Rachel Kolsky
History of Stoke Newington
 
PPTX
PPT-Q1-WK-3-ENGLISH Revised Matatag Grade 3.pptx
reijhongidayawan02
 
PDF
The History of Phone Numbers in Stoke Newington by Billy Thomas
History of Stoke Newington
 
PDF
Isharyanti-2025-Cross Language Communication in Indonesian Language
Neny Isharyanti
 
PDF
Chapter-V-DED-Entrepreneurship: Institutions Facilitating Entrepreneurship
Dayanand Huded
 
PPTX
Universal immunization Programme (UIP).pptx
Vishal Chanalia
 
PDF
Characteristics, Strengths and Weaknesses of Quantitative Research.pdf
Thelma Villaflores
 
PDF
0725.WHITEPAPER-UNIQUEWAYSOFPROTOTYPINGANDUXNOW.pdf
Thomas GIRARD, MA, CDP
 
PDF
Horarios de distribución de agua en julio
pegazohn1978
 
PDF
Women's Health: Essential Tips for Every Stage.pdf
Iftikhar Ahmed
 
PDF
Governor Josh Stein letter to NC delegation of U.S. House
Mebane Rash
 
PDF
The Constitution Review Committee (CRC) has released an updated schedule for ...
nservice241
 
PPT
Talk on Critical Theory, Part One, Philosophy of Social Sciences
Soraj Hongladarom
 
Dimensions of Societal Planning in Commonism
StefanMz
 
STAFF DEVELOPMENT AND WELFARE: MANAGEMENT
PRADEEP ABOTHU
 
Cultivation practice of Litchi in Nepal.pptx
UmeshTimilsina1
 
PPT-Q1-WEEK-3-SCIENCE-ERevised Matatag Grade 3.pptx
reijhongidayawan02
 
Neurodivergent Friendly Schools - Slides from training session
Pooky Knightsmith
 
Quarter 1_PPT_PE & HEALTH 8_WEEK 3-4.pptx
ronajadolpnhs
 
The Different Types of Non-Experimental Research
Thelma Villaflores
 
Stokey: A Jewish Village by Rachel Kolsky
History of Stoke Newington
 
PPT-Q1-WK-3-ENGLISH Revised Matatag Grade 3.pptx
reijhongidayawan02
 
The History of Phone Numbers in Stoke Newington by Billy Thomas
History of Stoke Newington
 
Isharyanti-2025-Cross Language Communication in Indonesian Language
Neny Isharyanti
 
Chapter-V-DED-Entrepreneurship: Institutions Facilitating Entrepreneurship
Dayanand Huded
 
Universal immunization Programme (UIP).pptx
Vishal Chanalia
 
Characteristics, Strengths and Weaknesses of Quantitative Research.pdf
Thelma Villaflores
 
0725.WHITEPAPER-UNIQUEWAYSOFPROTOTYPINGANDUXNOW.pdf
Thomas GIRARD, MA, CDP
 
Horarios de distribución de agua en julio
pegazohn1978
 
Women's Health: Essential Tips for Every Stage.pdf
Iftikhar Ahmed
 
Governor Josh Stein letter to NC delegation of U.S. House
Mebane Rash
 
The Constitution Review Committee (CRC) has released an updated schedule for ...
nservice241
 
Talk on Critical Theory, Part One, Philosophy of Social Sciences
Soraj Hongladarom
 

Variable C# - Lec5 (Workshop on C# Programming: Learn to Build)