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

More Related Content

PPTX
Type Casting C# - Lec4 (Workshop on C# Programming: Learn to Build)
PPTX
C# Basic - Lec1 (Workshop on C# Programming: Learn to Build)
PPTX
32sql server
PPT
Python advanced 3.the python std lib by example –data structures
PPTX
Net framework
PPTX
Tools for reading papers
PPT
Python advanced 3.the python std lib by example – algorithm
PPTX
Understanding the components of standard template library
Type Casting C# - Lec4 (Workshop on C# Programming: Learn to Build)
C# Basic - Lec1 (Workshop on C# Programming: Learn to Build)
32sql server
Python advanced 3.the python std lib by example –data structures
Net framework
Tools for reading papers
Python advanced 3.the python std lib by example – algorithm
Understanding the components of standard template library

What's hot (20)

PDF
Reactive Programming in the Browser feat. Scala.js and PureScript
PDF
(Kpi summer school 2015) theano tutorial part1
PPT
2CPP16 - STL
PPTX
Constructor and destructor
PDF
An Introduction to the C++ Standard Library
PPTX
Theano tutorial
PPTX
Operators and expression in c++
PPT
Python advanced 3.the python std lib by example – application building blocks
PPTX
Machine Learning in H2O
PDF
Building a Tagless Final DSL for WebGL
PDF
Cocoaheads Meetup / Alex Zimin / Swift magic
PPTX
Stack Data structure
DOCX
Exp 6.1 d-422-1
PPTX
Streams&io
PPT
Playing the toStrings
PPTX
Pa2 session 1
PPTX
Lambda expressions
PPT
Standard Library Functions
PPTX
CSharp for Unity - Day 1
Reactive Programming in the Browser feat. Scala.js and PureScript
(Kpi summer school 2015) theano tutorial part1
2CPP16 - STL
Constructor and destructor
An Introduction to the C++ Standard Library
Theano tutorial
Operators and expression in c++
Python advanced 3.the python std lib by example – application building blocks
Machine Learning in H2O
Building a Tagless Final DSL for WebGL
Cocoaheads Meetup / Alex Zimin / Swift magic
Stack Data structure
Exp 6.1 d-422-1
Streams&io
Playing the toStrings
Pa2 session 1
Lambda expressions
Standard Library Functions
CSharp for Unity - Day 1
Ad

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

PPTX
data types in C-Sharp (C#)
PPTX
Data Types, Variables, and Constants in C# Programming
PDF
Data Types in C# OnlineTraining in Nareshit
PPTX
Types in .net
PPTX
DATATYPE IN C# CSHARP.net
PPTX
SPF Getting Started - Console Program
PPTX
Getting Started - Console Program and Problem Solving
DOCX
Unit 1 question and answer
PDF
C# Data Types and Comments_Lecture2_C#.pdf
PPTX
CSharp Language Overview Part 1
PPTX
Lesson 4 Basic Programming Constructs.pptx
PPTX
5variables in c#
PPTX
Chapter 2 c#
PDF
CSharpCheatSheetV1.pdf
PPT
7.data types in c#
PDF
434090527-C-Cheat-Sheet. pdf C# program
PPT
02 Primitive data types and variables
PPTX
2 programming with c# i
PDF
Learn C# Programming - Variables & Constants
data types in C-Sharp (C#)
Data Types, Variables, and Constants in C# Programming
Data Types in C# OnlineTraining in Nareshit
Types in .net
DATATYPE IN C# CSHARP.net
SPF Getting Started - Console Program
Getting Started - Console Program and Problem Solving
Unit 1 question and answer
C# Data Types and Comments_Lecture2_C#.pdf
CSharp Language Overview Part 1
Lesson 4 Basic Programming Constructs.pptx
5variables in c#
Chapter 2 c#
CSharpCheatSheetV1.pdf
7.data types in c#
434090527-C-Cheat-Sheet. pdf C# program
02 Primitive data types and variables
2 programming with c# i
Learn C# Programming - Variables & Constants
Ad

More from Jannat Ruma (8)

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

Recently uploaded (20)

PPTX
Cell Structure & Organelles in detailed.
PPTX
Institutional Correction lecture only . . .
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
Pre independence Education in Inndia.pdf
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PDF
Classroom Observation Tools for Teachers
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PPTX
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PPTX
Pharma ospi slides which help in ospi learning
PPTX
master seminar digital applications in india
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PDF
Microbial disease of the cardiovascular and lymphatic systems
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PDF
TR - Agricultural Crops Production NC III.pdf
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
Cell Structure & Organelles in detailed.
Institutional Correction lecture only . . .
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
Pre independence Education in Inndia.pdf
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
Classroom Observation Tools for Teachers
STATICS OF THE RIGID BODIES Hibbelers.pdf
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
Introduction to Child Health Nursing – Unit I | Child Health Nursing I | B.Sc...
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
Pharma ospi slides which help in ospi learning
master seminar digital applications in india
Renaissance Architecture: A Journey from Faith to Humanism
Microbial disease of the cardiovascular and lymphatic systems
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
TR - Agricultural Crops Production NC III.pdf
human mycosis Human fungal infections are called human mycosis..pptx

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: jannat.cse.ewu@gmail.com