Football

In the history of El Clasico, both Barcelona and Real Madrid have had victories and defeats. By looking at historical records, we are trying to understand who won in each game. It’s hard to read numbers, so you’re asked to write a program that would print Barcelona won the game if Barcelona scored higher than Real Madrid, and Real Madrid won the game if Real Madrid scored higher. In case of an equal score, the program should print It was a draw.
notion image
The input consists of two numbers. First is the score of Barcelona and second is the score of Real Madrid. Print the appropriate message for the game.
Input
Output
4 0
Barcelona won the game
1 11
Real Madrid won the game
To check your solution you need to sign in
Sign in to continue