diff --git a/Programming Basics/Data Types/Exercise 2/src/Task.kt b/Programming Basics/Data Types/Exercise 2/src/Task.kt index 2873db30..148b770a 100644 --- a/Programming Basics/Data Types/Exercise 2/src/Task.kt +++ b/Programming Basics/Data Types/Exercise 2/src/Task.kt @@ -28,8 +28,4 @@ fun main() { // val bb = boolean + boolean // val ic = int + character // val ds = double + string - - println("The type that can't be combined " + - "with itself using '+':") - println("Boolean") } \ No newline at end of file diff --git a/Programming Basics/Data Types/Exercise 2/task-info.yaml b/Programming Basics/Data Types/Exercise 2/task-info.yaml index 525807c8..c500ddbb 100644 --- a/Programming Basics/Data Types/Exercise 2/task-info.yaml +++ b/Programming Basics/Data Types/Exercise 2/task-info.yaml @@ -12,8 +12,5 @@ files: - offset: 682 length: 89 placeholder_text: TODO() // write some examples - - offset: 861 - length: 7 - placeholder_text: ??? - name: test/output.txt visible: false diff --git a/Programming Basics/Data Types/Exercise 2/task.md b/Programming Basics/Data Types/Exercise 2/task.md index b12edf8d..aaae10d7 100644 --- a/Programming Basics/Data Types/Exercise 2/task.md +++ b/Programming Basics/Data Types/Exercise 2/task.md @@ -3,8 +3,7 @@ Attempt to combine various `val`s of different types using the `+` operator. Only combine two at a time, and assign each combination to a `val` result. See which types combine. On the console, display the name of the type that can be -combined with any other type if it goes first, and the name of the type that -can't be combined with itself using `+`. +combined with any other type if it goes first. Replace the lines containing `TODO()` in the solution code with working code. If you don't remove these lines, you'll see an error saying "Operation is not diff --git a/Programming Basics/Data Types/Exercise 2/test/output.txt b/Programming Basics/Data Types/Exercise 2/test/output.txt index 1afd3e3a..deb28b4c 100644 --- a/Programming Basics/Data Types/Exercise 2/test/output.txt +++ b/Programming Basics/Data Types/Exercise 2/test/output.txt @@ -1,4 +1,2 @@ The type that can be combined with every other type using '+': String -The type that can't be combined with itself using '+': -Boolean