Kodewick
Start learning →
Starter←→0 / 60

Dog years

#006StarterOutput2 min

People say one dog year is like seven human years. Show Lucky is 21 in dog years: the name comes from name, and 21 is age times 7, worked out by the program.

Should show
Lucky is 21 in dog years
main.cpp
#include <iostream>
#include <string>
using namespace std;

int main() {
    string name = "Lucky";
    int age = 3;
    // your code here: show the name, " is ", age times 7 and " in dog years"
    return 0;
}
Ctrl + Enter runs too
Result

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