Kodewick
Start learning →
Starter←→0 / 86

The Name Tag

#063Startercout << "I am " << name3 min

Every desk needs a name tag. The name is already in name — make the program show I am Yinuo, taking the name from the variable instead of typing it again.

Should show
I am Yinuo
main.cpp
#include <iostream>
#include <string>
using namespace std;

int main() {
    string name = "Yinuo";
    // your code here: show I am followed by the name
    return 0;
}
Ctrl + Enter runs too
Result

Run tries the examples. When they look right, Submit.