00:01
We're going to be creating a c+ + program that will do basic calculations.
00:08
So to get started, we want to create four different global variables.
00:15
Global variables are variables we can call throughout the program.
00:20
So here, i've created a message that welcomes the user and tells the user to enter a choice, one for an ad, two for multiple, 3 for divide, 5 4, 4, subtract, and 5 for x .m.
00:39
If you run this, we can see our menu here.
00:47
Here in this line of code, i've gotten the input from the user.
00:54
This is what cn does.
00:58
So next, we want to create a switch statement.
01:08
Switch statement is kind of like an if statement.
01:11
With a switch statement, you have a condition and you have cases.
01:19
Within each case is how you define your condition...