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.
 
 
 
 
 
 

422 B

Plain Sum

Instructions

Create a function named plainSum, which accepts 3 int parameters, and returns their sum.

Functions in Dart are declared like this:

bool isEven(int num) {
  return num % 2;
}

Usage

Here is a possible program to test your function :

void main() {
  var result = plainSum(1, 2, 3);
  print(result);
}

And its output :

$ dart test.dart
6
$