Conditional Operators Example Program in Dart

Example Program:

Here is the simple program for printing basic example of conditional operators in dart.

Source Code

void main() {
  var a=50;
  var res=a>10 ? 'A is Greater Than 10':'A is Lesser Than 10';
  var b=25;
  var x=a>b?a:b;
  print("The Greatest Number is ${x}");
To download raw file Click Here


A is Greater Than 10
The Greatest Number is 50

Learn All in Tamil © Designed & Developed By Tutor Joes