Dart Equality and Relational Operators

void main() { var num1 = 5; var num2 = 9; var res = num1 > num2; print('num1 greater than num2 :: ' + res.toString()); res = num1 < num2; print('num1 lesser than num2 :: ' + res.toString()); res = num1 >= num2; print('num1 greater than or equal to num2 :: ' + res.toString()); res = num1 <= num2; print('num1 lesser than or equal to num2 :: ' + res.toString()); res = num1 != num2; print('num1 not equal to num2 :: ' + res.toString()); res = num1 == num2; print('num1 equal to num2 :: ' + res.toString()); }

No comments:

This will make you a better decision maker | Annie Duke (author of “Thinking in Bets” and “Quit”, former pro poker…

Annie is a former professional poker player, decision-making expert, author, and special partner at First Round Capital.  ͏     ­͏     ­͏   ...

Contact Form

Name

Email *

Message *