Arithmetic Operators Example Program in Dart


Example Program:

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

Source Code

import 'dart:io';
//a2+b2+2ab
void main(){
   var a,b;
   print('Enter The Value of A & B : ');
   a=int.parse(stdin.readLineSync());
   b=int.parse(stdin.readLineSync());
   print('Addition : ${a+b}');
   print('Subtraction : ${a-b}');
   print('Multiplication : ${a*b}');
   print('Division : ${a/b}');
   print('Mod : ${a%b}');
}
To download raw file Click Here

Output

Enter The Value of A & B : 
20
30
Addition : 50
Subtraction : -10
Multiplication : 600
Division : 0.6666666666666666
Mod : 20


Learn All in Tamil © Designed & Developed By Tutor Joes