给定一个英文句子，编写一个程序来找到其中最长的单词，并将其输出。


给定一个英文句子，例如："This is a sample sentence to demonstrate the task."
Python 示例代码：

```python
sentence = "This is a sample sentence to demonstrate the task."
words = sentence.split() # 分割句子中的单词
longest_word = max(words, key=len) # 找到最长单词
print(longest_word) # 输出最长单词
```

输出：

```
demonstrate
```