For Loop Example Program in Dart


Example Program:

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

Source Code

import 'dart:io';
void main() 
{
   var i,t,n;
   print('Enter the Table and Limit : ');
   t=int.parse(stdin.readLineSync());
   n=int.parse(stdin.readLineSync());
   for(i=1;i<=n;i++)
   {
    print(t.toString()+'*'+i.toString()+'='+(i*t).toString());
   }
}
To download raw file Click Here

Output

Enter the Table and Limit : 
10
5
10*1=10
10*2=20
10*3=30
10*4=40
10*5=50


Learn All in Tamil © Designed & Developed By Tutor Joes