...

/

Project: Print More Greetings

Project: Print More Greetings

Expand your use of cout to print additional, customized welcome lines.

We'll cover the following...

Try this

Change the existing message (Hello, world!) to:

cout << "I'm learning C++!" << endl;

 Anything in quotes gets printed.

Mini project

Add two more lines:

cout << "Welcome to the machine." << end
cout << "Let's write some code!" << endl;
Press + to interact
C++
#include <iostream>
using namespace std;
int main() {
// Make changes in the code below
cout << "Hello, world!" << endl;
return 0;
}

If you’re stuck, click the ‘‘Show Solution’’ button.

 You've created a conversation.

What’s next?

In the next lesson, we’ll turn C++ into your calculator and do real math with code!