Data update
This commit is contained in:
parent
35bcdeebf8
commit
74c69a0df6
2427 changed files with 31826 additions and 3468 deletions
18
Task/Arithmetic-Integer/Dart/arithmetic-integer.dart
Normal file
18
Task/Arithmetic-Integer/Dart/arithmetic-integer.dart
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
import 'dart:io';
|
||||
import 'dart:math' show pow;
|
||||
|
||||
void main() {
|
||||
print('enter a integer: ');
|
||||
int a = int.parse(stdin.readLineSync());
|
||||
print('enter another integer: ');
|
||||
int b = int.parse(stdin.readLineSync());
|
||||
|
||||
print('a + b = ${a + b}');
|
||||
print('a - b = ${a - b}');
|
||||
print('a * b = ${a * b}');
|
||||
print('a / b = ${a ~/ b}');
|
||||
print('a % b = ${a % b}');
|
||||
print('a ^ b = ${pow(a, b)}');
|
||||
|
||||
//Integer division uses the '~/' operator
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue