mirror of https://github.com/01-edu/public.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
321 B
23 lines
321 B
2 years ago
|
# Plain Sum
|
||
|
|
||
|
### Instructions
|
||
|
|
||
|
Write a function `int plainSum(int, int, int)` which takes 3 integers and returns their sum.
|
||
|
|
||
|
Functions in Dart are declared as follows:
|
||
|
|
||
|
```dart
|
||
|
bool isEven(int num) {
|
||
|
return num % 2;
|
||
|
}
|
||
|
```
|
||
|
|
||
|
### Usage
|
||
|
|
||
|
```dart
|
||
|
void main() {
|
||
|
var res = plainSum(1, 2, 3);
|
||
|
print(res); // prints 6
|
||
|
}
|
||
|
```
|