Kodewick
Start learning →
Starter←→0 / 60

Cinema ticket

#004StarterOutput2 min

The cinema ticket needs one line: the film and the seat. Use cout to show Toy Story, seat 12, taking the film from movie and the seat from seat (don't type them in yourself).

Should show
Toy Story, seat 12
main.cpp
#include <iostream>
#include <string>
using namespace std;

int main() {
    string movie = "Toy Story";
    int seat = 12;
    // your code here: cout the film, ", seat " and the seat number, then endl
    return 0;
}
Ctrl + Enter runs too
Result

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