I looked into my crystal ball...
A couple of assignments you are likely to see in the future (or on a test) are:
1- Make the program "flip the coin" for you. For this you'll need the rand() (random) function.
2- Put the program in a loop that asks "Do you want to play again"? If you haven't studied loops yet, there are 3 types of loops in C++, for-loops, while-loops, and do-while-loops.
More of my standard comments for beginners:
The if statement (Decision making and "branching") that you have already learned, and loops (doing things over-and-over), are the foundations that make all programming worthwhile. There's plenty more to learn, but these are the most important concepts!