SlideShare a Scribd company logo
Data Type C# - Lec2 (Workshop on C# Programming: Learn to Build)
C#
Day 1
Lecture4: Data Type
Data Type: Integer
using System;
namespace dataType
{
class Program
{
static void Main(string[] args)
{
int intValue = 100;
Console.WriteLine(intValue);
Console.Read();
}
}
}
Data Type: Double
using System;
namespace dataType
{
class Program
{
static void Main(string[] args)
{
double doubleValue = 100.100;
Console.WriteLine(doubleValue);
Console.Read();
}
}
}
Data Type: Decimal
using System;
namespace dataType
{
class Program
{
static void Main(string[] args)
{
decimal longDouble = 10000.1000m;
Console.WriteLine(longDouble);
Console.Read();
}
}
}
Data Type: Character
using System;
namespace dataType
{
class Program
{
static void Main(string[] args)
{
char charValues = 'a';
Console.WriteLine(charValue);
Console.Read();
}
}
}
Data Type: Initialize Type
using System;
namespace dataType
{
class Program
{
static void Main(string[] args)
{
int intValue;
intValue =new int();
Console.WriteLine(intValue);
Console.Read();
}
}
}
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
Ad

Recommended

Type Casting C# - Lec4 (Workshop on C# Programming: Learn to Build)
Type Casting C# - Lec4 (Workshop on C# Programming: Learn to Build)
Jannat Ruma
 
C# Basic - Lec1 (Workshop on C# Programming: Learn to Build)
C# Basic - Lec1 (Workshop on C# Programming: Learn to Build)
Jannat Ruma
 
32sql server
32sql server
Sireesh K
 
Python advanced 3.the python std lib by example –data structures
Python advanced 3.the python std lib by example –data structures
John(Qiang) Zhang
 
Net framework
Net framework
Abhishek Mukherjee
 
Tools for reading papers
Tools for reading papers
Jack Fox
 
Python advanced 3.the python std lib by example – algorithm
Python advanced 3.the python std lib by example – algorithm
John(Qiang) Zhang
 
Understanding the components of standard template library
Understanding the components of standard template library
Rahul Sharma
 
Reactive Programming in the Browser feat. Scala.js and PureScript
Reactive Programming in the Browser feat. Scala.js and PureScript
Luka Jacobowitz
 
(Kpi summer school 2015) theano tutorial part1
(Kpi summer school 2015) theano tutorial part1
Serhii Havrylov
 
2CPP16 - STL
2CPP16 - STL
Michael Heron
 
Cis166 final review c#
Cis166 final review c#
Randy Riness @ South Puget Sound Community College
 
Constructor and destructor
Constructor and destructor
rajshreemuthiah
 
An Introduction to the C++ Standard Library
An Introduction to the C++ Standard Library
Joyjit Choudhury
 
Theano tutorial
Theano tutorial
Serhii Havrylov
 
Operators and expression in c++
Operators and expression in c++
ThamizhselviKrishnam
 
Python advanced 3.the python std lib by example – application building blocks
Python advanced 3.the python std lib by example – application building blocks
John(Qiang) Zhang
 
Machine Learning in H2O
Machine Learning in H2O
Aakash Gupta
 
Building a Tagless Final DSL for WebGL
Building a Tagless Final DSL for WebGL
Luka Jacobowitz
 
Cocoaheads Meetup / Alex Zimin / Swift magic
Cocoaheads Meetup / Alex Zimin / Swift magic
Badoo Development
 
Stack Data structure
Stack Data structure
B Liyanage Asanka
 
Exp 6.1 d-422-1
Exp 6.1 d-422-1
Omkar Rane
 
Streams&io
Streams&io
PhD Research Scholar
 
Playing the toStrings
Playing the toStrings
Konstantin Pavlov
 
Pa2 session 1
Pa2 session 1
aiclub_slides
 
Lambda expressions
Lambda expressions
Stav Alfi
 
Standard Library Functions
Standard Library Functions
Praveen M Jigajinni
 
CSharp for Unity - Day 1
CSharp for Unity - Day 1
Duong Thanh
 
data types in C-Sharp (C#)
data types in C-Sharp (C#)
Abid Kohistani
 
Data Types, Variables, and Constants in C# Programming
Data Types, Variables, and Constants in C# Programming
Sherwin Banaag Sapin
 

More Related Content

What's hot (20)

Reactive Programming in the Browser feat. Scala.js and PureScript
Reactive Programming in the Browser feat. Scala.js and PureScript
Luka Jacobowitz
 
(Kpi summer school 2015) theano tutorial part1
(Kpi summer school 2015) theano tutorial part1
Serhii Havrylov
 
2CPP16 - STL
2CPP16 - STL
Michael Heron
 
Cis166 final review c#
Cis166 final review c#
Randy Riness @ South Puget Sound Community College
 
Constructor and destructor
Constructor and destructor
rajshreemuthiah
 
An Introduction to the C++ Standard Library
An Introduction to the C++ Standard Library
Joyjit Choudhury
 
Theano tutorial
Theano tutorial
Serhii Havrylov
 
Operators and expression in c++
Operators and expression in c++
ThamizhselviKrishnam
 
Python advanced 3.the python std lib by example – application building blocks
Python advanced 3.the python std lib by example – application building blocks
John(Qiang) Zhang
 
Machine Learning in H2O
Machine Learning in H2O
Aakash Gupta
 
Building a Tagless Final DSL for WebGL
Building a Tagless Final DSL for WebGL
Luka Jacobowitz
 
Cocoaheads Meetup / Alex Zimin / Swift magic
Cocoaheads Meetup / Alex Zimin / Swift magic
Badoo Development
 
Stack Data structure
Stack Data structure
B Liyanage Asanka
 
Exp 6.1 d-422-1
Exp 6.1 d-422-1
Omkar Rane
 
Streams&io
Streams&io
PhD Research Scholar
 
Playing the toStrings
Playing the toStrings
Konstantin Pavlov
 
Pa2 session 1
Pa2 session 1
aiclub_slides
 
Lambda expressions
Lambda expressions
Stav Alfi
 
Standard Library Functions
Standard Library Functions
Praveen M Jigajinni
 
CSharp for Unity - Day 1
CSharp for Unity - Day 1
Duong Thanh
 
Reactive Programming in the Browser feat. Scala.js and PureScript
Reactive Programming in the Browser feat. Scala.js and PureScript
Luka Jacobowitz
 
(Kpi summer school 2015) theano tutorial part1
(Kpi summer school 2015) theano tutorial part1
Serhii Havrylov
 
Constructor and destructor
Constructor and destructor
rajshreemuthiah
 
An Introduction to the C++ Standard Library
An Introduction to the C++ Standard Library
Joyjit Choudhury
 
Python advanced 3.the python std lib by example – application building blocks
Python advanced 3.the python std lib by example – application building blocks
John(Qiang) Zhang
 
Machine Learning in H2O
Machine Learning in H2O
Aakash Gupta
 
Building a Tagless Final DSL for WebGL
Building a Tagless Final DSL for WebGL
Luka Jacobowitz
 
Cocoaheads Meetup / Alex Zimin / Swift magic
Cocoaheads Meetup / Alex Zimin / Swift magic
Badoo Development
 
Exp 6.1 d-422-1
Exp 6.1 d-422-1
Omkar Rane
 
Lambda expressions
Lambda expressions
Stav Alfi
 
CSharp for Unity - Day 1
CSharp for Unity - Day 1
Duong Thanh
 

Similar to Data Type C# - Lec2 (Workshop on C# Programming: Learn to Build) (20)

data types in C-Sharp (C#)
data types in C-Sharp (C#)
Abid Kohistani
 
Data Types, Variables, and Constants in C# Programming
Data Types, Variables, and Constants in C# Programming
Sherwin Banaag Sapin
 
Data Types in C# OnlineTraining in Nareshit
Data Types in C# OnlineTraining in Nareshit
TejaswiniNareshIT
 
Types in .net
Types in .net
Shivam Lohiya
 
DATATYPE IN C# CSHARP.net
DATATYPE IN C# CSHARP.net
Sireesh K
 
SPF Getting Started - Console Program
SPF Getting Started - Console Program
Hock Leng PUAH
 
Getting Started - Console Program and Problem Solving
Getting Started - Console Program and Problem Solving
Hock Leng PUAH
 
Unit 1 question and answer
Unit 1 question and answer
Vasuki Ramasamy
 
C# Data Types and Comments_Lecture2_C#.pdf
C# Data Types and Comments_Lecture2_C#.pdf
Azhar Babil
 
CSharp Language Overview Part 1
CSharp Language Overview Part 1
Hossein Zahed
 
Lesson 4 Basic Programming Constructs.pptx
Lesson 4 Basic Programming Constructs.pptx
John Burca
 
C#
C#
Sudhriti Gupta
 
5variables in c#
5variables in c#
Sireesh K
 
Chapter 2 c#
Chapter 2 c#
megersaoljira
 
CSharpCheatSheetV1.pdf
CSharpCheatSheetV1.pdf
ssusera0bb35
 
7.data types in c#
7.data types in c#
Zeeshan Ahmad
 
434090527-C-Cheat-Sheet. pdf C# program
434090527-C-Cheat-Sheet. pdf C# program
MAHESHV559910
 
02 Primitive data types and variables
02 Primitive data types and variables
maznabili
 
2 programming with c# i
2 programming with c# i
siragezeynu
 
Learn C# Programming - Variables & Constants
Learn C# Programming - Variables & Constants
Eng Teong Cheah
 
data types in C-Sharp (C#)
data types in C-Sharp (C#)
Abid Kohistani
 
Data Types, Variables, and Constants in C# Programming
Data Types, Variables, and Constants in C# Programming
Sherwin Banaag Sapin
 
Data Types in C# OnlineTraining in Nareshit
Data Types in C# OnlineTraining in Nareshit
TejaswiniNareshIT
 
DATATYPE IN C# CSHARP.net
DATATYPE IN C# CSHARP.net
Sireesh K
 
SPF Getting Started - Console Program
SPF Getting Started - Console Program
Hock Leng PUAH
 
Getting Started - Console Program and Problem Solving
Getting Started - Console Program and Problem Solving
Hock Leng PUAH
 
Unit 1 question and answer
Unit 1 question and answer
Vasuki Ramasamy
 
C# Data Types and Comments_Lecture2_C#.pdf
C# Data Types and Comments_Lecture2_C#.pdf
Azhar Babil
 
CSharp Language Overview Part 1
CSharp Language Overview Part 1
Hossein Zahed
 
Lesson 4 Basic Programming Constructs.pptx
Lesson 4 Basic Programming Constructs.pptx
John Burca
 
5variables in c#
5variables in c#
Sireesh K
 
CSharpCheatSheetV1.pdf
CSharpCheatSheetV1.pdf
ssusera0bb35
 
434090527-C-Cheat-Sheet. pdf C# program
434090527-C-Cheat-Sheet. pdf C# program
MAHESHV559910
 
02 Primitive data types and variables
02 Primitive data types and variables
maznabili
 
2 programming with c# i
2 programming with c# i
siragezeynu
 
Learn C# Programming - Variables & Constants
Learn C# Programming - Variables & Constants
Eng Teong Cheah
 
Ad

More from Jannat Ruma (8)

Windows Form - Lec12 (Workshop on C# Programming: Learn to Build)
Windows Form - Lec12 (Workshop on C# Programming: Learn to Build)
Jannat Ruma
 
Class C# - Lec11 (Workshop on C# Programming: Learn to Build)
Class C# - Lec11 (Workshop on C# Programming: Learn to Build)
Jannat Ruma
 
String C# - Lec10 (Workshop on C# Programming: Learn to Build)
String C# - Lec10 (Workshop on C# Programming: Learn to Build)
Jannat Ruma
 
Method C# - Lec8 (Workshop on C# Programming: Learn to Build)
Method C# - Lec8 (Workshop on C# Programming: Learn to Build)
Jannat Ruma
 
Loop C# - Lec7 (Workshop on C# Programming: Learn to Build)
Loop C# - Lec7 (Workshop on C# Programming: Learn to Build)
Jannat Ruma
 
Decision Making C# - Lec6 (Workshop on C# Programming: Learn to Build)
Decision Making C# - Lec6 (Workshop on C# Programming: Learn to Build)
Jannat Ruma
 
Variable C# - Lec5 (Workshop on C# Programming: Learn to Build)
Variable C# - Lec5 (Workshop on C# Programming: Learn to Build)
Jannat Ruma
 
Operator C# - Lec3 (Workshop on C# Programming: Learn to Build)
Operator C# - Lec3 (Workshop on C# Programming: Learn to Build)
Jannat Ruma
 
Windows Form - Lec12 (Workshop on C# Programming: Learn to Build)
Windows Form - Lec12 (Workshop on C# Programming: Learn to Build)
Jannat Ruma
 
Class C# - Lec11 (Workshop on C# Programming: Learn to Build)
Class C# - Lec11 (Workshop on C# Programming: Learn to Build)
Jannat Ruma
 
String C# - Lec10 (Workshop on C# Programming: Learn to Build)
String C# - Lec10 (Workshop on C# Programming: Learn to Build)
Jannat Ruma
 
Method C# - Lec8 (Workshop on C# Programming: Learn to Build)
Method C# - Lec8 (Workshop on C# Programming: Learn to Build)
Jannat Ruma
 
Loop C# - Lec7 (Workshop on C# Programming: Learn to Build)
Loop C# - Lec7 (Workshop on C# Programming: Learn to Build)
Jannat Ruma
 
Decision Making C# - Lec6 (Workshop on C# Programming: Learn to Build)
Decision Making C# - Lec6 (Workshop on C# Programming: Learn to Build)
Jannat Ruma
 
Variable C# - Lec5 (Workshop on C# Programming: Learn to Build)
Variable C# - Lec5 (Workshop on C# Programming: Learn to Build)
Jannat Ruma
 
Operator C# - Lec3 (Workshop on C# Programming: Learn to Build)
Operator C# - Lec3 (Workshop on C# Programming: Learn to Build)
Jannat Ruma
 
Ad

Recently uploaded (20)

Overview of Employee in Odoo 18 - Odoo Slides
Overview of Employee in Odoo 18 - Odoo Slides
Celine George
 
PEST OF WHEAT SORGHUM BAJRA and MINOR MILLETS.pptx
PEST OF WHEAT SORGHUM BAJRA and MINOR MILLETS.pptx
Arshad Shaikh
 
BUSINESS QUIZ PRELIMS | QUIZ CLUB OF PSGCAS | 9 SEPTEMBER 2024
BUSINESS QUIZ PRELIMS | QUIZ CLUB OF PSGCAS | 9 SEPTEMBER 2024
Quiz Club of PSG College of Arts & Science
 
Exploring Ocean Floor Features for Middle School
Exploring Ocean Floor Features for Middle School
Marie
 
What are the benefits that dance brings?
What are the benefits that dance brings?
memi27
 
Overview of Off Boarding in Odoo 18 Employees
Overview of Off Boarding in Odoo 18 Employees
Celine George
 
2025 June Year 9 Presentation: Subject selection.pptx
2025 June Year 9 Presentation: Subject selection.pptx
mansk2
 
JHS SHS Back to School 2024-2025 .pptx
JHS SHS Back to School 2024-2025 .pptx
melvinapay78
 
Paper 109 | Archetypal Journeys in ‘Interstellar’: Exploring Universal Themes...
Paper 109 | Archetypal Journeys in ‘Interstellar’: Exploring Universal Themes...
Rajdeep Bavaliya
 
Capitol Doctoral Presentation -June 2025.pptx
Capitol Doctoral Presentation -June 2025.pptx
CapitolTechU
 
Assisting Individuals and Families to Promote and Maintain Health – Unit 7 | ...
Assisting Individuals and Families to Promote and Maintain Health – Unit 7 | ...
RAKESH SAJJAN
 
june 10 2025 ppt for madden on art science is over.pptx
june 10 2025 ppt for madden on art science is over.pptx
roger malina
 
Sustainable Innovation with Immersive Learning
Sustainable Innovation with Immersive Learning
Leonel Morgado
 
FEBA Sofia Univercity final diplian v3 GSDG 5.2025.pdf
FEBA Sofia Univercity final diplian v3 GSDG 5.2025.pdf
ChristinaFortunova
 
ICT-8-Module-REVISED-K-10-CURRICULUM.pdf
ICT-8-Module-REVISED-K-10-CURRICULUM.pdf
penafloridaarlyn
 
How to Create an Event in Odoo 18 - Odoo 18 Slides
How to Create an Event in Odoo 18 - Odoo 18 Slides
Celine George
 
LDMMIA GRAD Student Check-in Orientation Sampler
LDMMIA GRAD Student Check-in Orientation Sampler
LDM & Mia eStudios
 
Introduction to problem solving Techniques
Introduction to problem solving Techniques
merlinjohnsy
 
What is FIle and explanation of text files.pptx
What is FIle and explanation of text files.pptx
Ramakrishna Reddy Bijjam
 
Introduction to Generative AI and Copilot.pdf
Introduction to Generative AI and Copilot.pdf
TechSoup
 
Overview of Employee in Odoo 18 - Odoo Slides
Overview of Employee in Odoo 18 - Odoo Slides
Celine George
 
PEST OF WHEAT SORGHUM BAJRA and MINOR MILLETS.pptx
PEST OF WHEAT SORGHUM BAJRA and MINOR MILLETS.pptx
Arshad Shaikh
 
Exploring Ocean Floor Features for Middle School
Exploring Ocean Floor Features for Middle School
Marie
 
What are the benefits that dance brings?
What are the benefits that dance brings?
memi27
 
Overview of Off Boarding in Odoo 18 Employees
Overview of Off Boarding in Odoo 18 Employees
Celine George
 
2025 June Year 9 Presentation: Subject selection.pptx
2025 June Year 9 Presentation: Subject selection.pptx
mansk2
 
JHS SHS Back to School 2024-2025 .pptx
JHS SHS Back to School 2024-2025 .pptx
melvinapay78
 
Paper 109 | Archetypal Journeys in ‘Interstellar’: Exploring Universal Themes...
Paper 109 | Archetypal Journeys in ‘Interstellar’: Exploring Universal Themes...
Rajdeep Bavaliya
 
Capitol Doctoral Presentation -June 2025.pptx
Capitol Doctoral Presentation -June 2025.pptx
CapitolTechU
 
Assisting Individuals and Families to Promote and Maintain Health – Unit 7 | ...
Assisting Individuals and Families to Promote and Maintain Health – Unit 7 | ...
RAKESH SAJJAN
 
june 10 2025 ppt for madden on art science is over.pptx
june 10 2025 ppt for madden on art science is over.pptx
roger malina
 
Sustainable Innovation with Immersive Learning
Sustainable Innovation with Immersive Learning
Leonel Morgado
 
FEBA Sofia Univercity final diplian v3 GSDG 5.2025.pdf
FEBA Sofia Univercity final diplian v3 GSDG 5.2025.pdf
ChristinaFortunova
 
ICT-8-Module-REVISED-K-10-CURRICULUM.pdf
ICT-8-Module-REVISED-K-10-CURRICULUM.pdf
penafloridaarlyn
 
How to Create an Event in Odoo 18 - Odoo 18 Slides
How to Create an Event in Odoo 18 - Odoo 18 Slides
Celine George
 
LDMMIA GRAD Student Check-in Orientation Sampler
LDMMIA GRAD Student Check-in Orientation Sampler
LDM & Mia eStudios
 
Introduction to problem solving Techniques
Introduction to problem solving Techniques
merlinjohnsy
 
What is FIle and explanation of text files.pptx
What is FIle and explanation of text files.pptx
Ramakrishna Reddy Bijjam
 
Introduction to Generative AI and Copilot.pdf
Introduction to Generative AI and Copilot.pdf
TechSoup
 

Data Type C# - Lec2 (Workshop on C# Programming: Learn to Build)

  • 3. Data Type: Integer using System; namespace dataType { class Program { static void Main(string[] args) { int intValue = 100; Console.WriteLine(intValue); Console.Read(); } } }
  • 4. Data Type: Double using System; namespace dataType { class Program { static void Main(string[] args) { double doubleValue = 100.100; Console.WriteLine(doubleValue); Console.Read(); } } }
  • 5. Data Type: Decimal using System; namespace dataType { class Program { static void Main(string[] args) { decimal longDouble = 10000.1000m; Console.WriteLine(longDouble); Console.Read(); } } }
  • 6. Data Type: Character using System; namespace dataType { class Program { static void Main(string[] args) { char charValues = 'a'; Console.WriteLine(charValue); Console.Read(); } } }
  • 7. Data Type: Initialize Type using System; namespace dataType { class Program { static void Main(string[] args) { int intValue; intValue =new int(); Console.WriteLine(intValue); Console.Read(); } } }
  • 8. 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: [email protected]