-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path2_DataTypesWithVariable.dart
More file actions
52 lines (31 loc) · 1.03 KB
/
Copy path2_DataTypesWithVariable.dart
File metadata and controls
52 lines (31 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
void main(){
// Numbers : Int with declare to var.
// Data type int , variable a , value = 10;
// we are using to java , kotlin with Dart are same programming.. can using to var, val;
int i = 10 ;
var result = i;
print("Integer value : $result");
// this is call for integer hex value..
int hexValue = 0xEDABEE;
// numbers double value Declare
double d = 20.15;
var e = 10.5;
var res = d+e;
print("Double value : $res");
//String value Declare
String name = "This is first Programming is Dart.";
var disName = "I am from learning Khulna.";
print("String value: $name $disName");
//Boolean value Declare
bool b = true;
print("Bollean value : $b");
var bl = 10;
var bn = 5;
var rest = bl>bn;
print("Boolean value : $rest");
// by default initialize vlaue = null
String cityName ;
print("This is call for : $cityName");
// All datatypes are dart are Object..
// Therefore there initial value is by default null
}