Introduction

1.2 - Printing a different text


The previous "Hello world!" program works by printing the text in the line std::cout << "Hello world!" << std::endl;. Changing the text "Hello world!" would change the program output.

Task

Modify the program to print out Goodbye cruel world!.

  • Change the "Hello world!" to "Goodbye cruel world!" in the 5th line.
#include <iostream> int main() { std::cout << "Hello world!" << std::endl; }