-
Notifications
You must be signed in to change notification settings - Fork 1
/
main3.dart
53 lines (37 loc) · 1014 Bytes
/
main3.dart
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
//variables and datatypes
//varialbe and objects
//input lena hai or out put show krna hai
import 'dart:io';
void main(){
print('welcome to dart!');
stdout.write('enter your name');
var name = stdin.readLineSync();
print("welcome, $name");
Human(); //creating an class object
//declarvation of variable
// int? a; direct not call them , but that ? sign with you use them null value
int a;
a = 5; //initialization
print(a);
a = 7;
print(a);
// inline decolaration
String name2 = "Raman";
name2 = "Ramanjuan";
print(name2);//Reassign
int b = 1234567891011112131;
// variable in not big int store them
BigInt longValue;
longValue = BigInt.parse('12345678910111121314');
//point in value
double percentage = 99.65;
num pr1 = 99.44;
//int me point value store them
//num in point value and whole value store value them
bool isLogin = false;
isLogin = true;
//next we learn var and dynamic datatype
}
class Human {
Human();
}