Final Battle

Report a typo

Imagine a Duel on Mustafar between Obi-Wan vs Anakin: our characters exchanging words and emotions. However, they're misspelling their lines. Your task is to show Anakin's enragement and Obi-Wan's calmness, making it in one line.

Do not forget to put space between them.

Sample Input 1:

It's over Anakin. I have the high ground!
You underestimate my power!

Sample Output 1:

it's over anakin. i have the high ground! YOU UNDERESTIMATE MY POWER!
Write a program in Go
package main

import (
"bufio"
"fmt"
"os"
"strings"
)

func finalWords(obiwanWords, anakinWords string) string {
// How to make line ENRAGED and calm?
// Obi-Wan says first, then goes Anakin
return + " " +
}

// DO NOT EDIT
func main() {
scanner := bufio.NewScanner(os.Stdin)
scanner.Scan()
obiwanWords := scanner.Text()
scanner.Scan()
anakinWords := scanner.Text()

fmt.Println(finalWords(obiwanWords, anakinWords))
}
___

Create a free account to access the full topic