-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.dart
More file actions
51 lines (50 loc) · 1.15 KB
/
main.dart
File metadata and controls
51 lines (50 loc) · 1.15 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
//void main() {
// //int
// int num1 = 10
// //double
// double num2 = 5.5
// print (num1)
// print (num2)
// example of a string data type
// String school = "Power Learn Project";
// String address = "Mombasa";
// print (Hey there I am kamash a student at $school and I come from $address)
// example of boolean as a datatype
// bool isgraduated = true;
//print ("graduation status:$isgraduated");
//lists
//lists
// writing function outside main function.
///void printName(){
// print("My name John James");
//}
// this is our main function.
//void main(){
// printName();
//}
//void add(int num1, int num2){
//int sum = num1 + num2;
// print("The sum is $sum");
//}
//void main(){
// add(10, 20);
//}
//void main(){
//stringLength(){
// List name = ['kamash','monicah','bertha'];
//String name ="Monicah";
//return name.length;
// return name[2];
// }
// print (stringLength());
//}
void main(){
int addTwo(){
print("enter the first no:");
int num1 = int.parse(stdin.readLineSync()!);
print("enter the second no:");
int num2 = int.parse(stdin.readLineSync()!);
}
}
print (stringLength());
}