14 Jan 2019

Dart 14 january

Yor Code is:

/* Today Is 14 January 2019, Dart Class 2nd Day. Sakal Sarkar*/

void main()
{

#Task 1: Print Your Name And Your Regsirtation Id:

print("Sakal Sarkar");
print(18201007);


#Task 2: Print Your Name And Your Regsirtation Id And CGPA for 3 times:

 var i;
 var reg = 10;
 var cgpa = 9.99;
 var name = "Sakal";

for(i=0; i<3; i++)
{
print(name);
print(reg);
print(cgpa);
}


#Task 3: Print A Sentence using variable deciaration and simple way:
 ## Best way to write a variable name and its sturture...

var meessage = "We Are going for a picnic in next Wednesday";
print(meessage);
 print("We Are going for a picnic in next Wednesday");


var makeupName = 'Loreal';
 print(makeupName);

#Task 4: Print Text with a veriables's value:

var m = 9876543210;
print("Bank account Number: $m");


#Task 5: Print Your Regsirtation number and add 10 on this:

var regristationnumber = 18201007;

print("My Regristation Number Is : ${regristationnumber+10}");


#Task 6: Print Your Name And Your Regsirtation Id And CGPA with collecting from variable's value:

var reg = 18201007, cgpa = 9.99, name = "Sakal Sarkar" ;

print("Name: $name \nRegristation: $reg \nCGPA is: $cgpa");



#Task 7: Print string and solve (") Semiclone problem:

var messegetoUapain = "You are selected for \"VC's Special Award !" ;
 print(messegetoUapain);

#Task 8: If else problem solve:
var roll = 7;

 if(roll > 70)
 {
 print('You are in B Section!');
 }
else
 print('You are in A Section!');


#Task 9: If else problem solve higher way:

var reg = 18201007;

if(reg%10 == 0)
{
 print("This Can be Divided by 10(ten)");
}

else if(reg%10 == 2)
{
 print("This Can be Divided by 2");
}

 else
{
 print('This Can\'t Divided by 10 and 2');
}

#Task 10: Variable of match:

var a = 2323, b= 22;

var summation = a+b;
var subtraction = a-b;
var multipilication = a*b;
var division = a/b;

print(summation);
print(subtraction);
print(multipilication);
print(division);

}

Leave a Reply

Your email address will not be published. Required fields are marked *