Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

dart while

void main() { 
   var num = 5; 
   var factorial = 1; 
   
   while(num >=1) { 
      factorial = factorial * num; 
      num--; 
   } 
   print("The factorial  is ${factorial}"); 
}
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #dart
ADD COMMENT
Topic
Name
3+2 =