-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSession1.dart
More file actions
75 lines (50 loc) · 1.07 KB
/
Session1.dart
File metadata and controls
75 lines (50 loc) · 1.07 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
void main()
{
//simple printing the statement
print("hello");
// int i;
// print("${i}");//error comes as initilization has not there.
int j=9;
print("${j}");
j=8;
print("${j}");
String Q="tr";
// Q=3; error comes
// j=3.3;
// print("${j}");//error comes as we cannot assign float value to int value.
double k=8.8;
print("${k}");
k=3;
print("${k}");//can assign int value to double value as memory consumed by double value more than int value.. so type casting has been done.
//var
//Case 1
var m=3;
print("${m}");
// m=5.2; //error comes
// print("${m}");
//Case 2
var n=3.6;
print("${n}");
n=5;
print("${n}");
//Case 3
var p=3.6;
print("${p}");
// p="priya";//error comes
// print("${p}");
//Object
Object i;
i="Priya";
print("${i}");
i=9;
print("${i}");
i=8.7;
print("${i}");
i=true;
print("${i}");
//Unicode Character Table: https://unicode-table.com/en/
print("\u20b9");
print("😁");
// Exploratory -> Samrt Water Bottle
// Explore - Operators Once Again
}