Kodewick
Start learning →
Starter←→0 / 86

The Pencil Case

#061Startercout << ming + hong3 min

Ming has 7 pencils and Hong has 5, already stored in ming and hong. Show how many they have altogether.

Should show
12
main.cpp
#include <iostream>
using namespace std;

int main() {
    int ming = 7;
    int hong = 5;
    // your code here: show how many pencils they have together
    return 0;
}
Ctrl + Enter runs too
Result

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