Can you.. ?

Report a typo

Imagine that you're a tutor. You need to write a program that parses your students' answers and prints true if the answer is I can do my homework on time! or I can't do my homework on time! and false in all other cases.

To complete this task, use the function matches().

Sample Input 1:

I can do my homework on time!

Sample Output 1:

true

Sample Input 2:

I can't do my homework on time!

Sample Output 2:

true
Write a program in Kotlin
fun main() {
val answer = readln()
// write your code here
}
___

Create a free account to access the full topic