Solve: Sum Double
Imported By: Geoffrey Challen
/ Version: 2021.4.0
Given two Int
values, return their sum. Unless the two values are the same, then return double their sum.
For this problem we're expecting only a method.
Don't define a class, include modifiers like static or public, add import statements, or add code outside the method declaration.fun sumDouble(
first: Int,
second: Int,
): Int {
return 0
}