//일반주석
///문서화 주석
/* 장문주석 */
int add(int a, int b){
return a+b; }
int add2(int a, int b) => a+b;
String add3 = "string";
bool YES or NO
bool add4 = false;
var add5 = "sstr";
List add6=[1,2,3,4,5];
if-else
int ifa = 23;
if(ifa < 50){
print("object");
}else{
print("oddbject");
}
String add7 = "show";
Switch(add7){
case "ssow" :
print('dsf');
break;
case "show":
print("df");
break;
default :
print("df");}
List aLss = [1,2,3,4,5];
for(int aLs in aLss){
print(aLs);}
int while1 = 1 ;
while(count < 5) {
print('object');
while1++;}
int do1 = 1;
do{
print('object');
do1++;
}while(1<10);
late String name;
print("my name is $name");
name = alice;
Class Person{
String name;
int age;
Person(this.name, this.age);
printInfo(){
print("name $name");
print("age $age"); }}
var person = Person('john do, 30');
person.printInfo();