how to display a variable in c++
#include <iostream>
int main() {
// Step 1: Declare a variable
int myVariable = 42;
// Step 2: Display the variable using std::cout
std::cout << "The value of myVariable is: " << myVariable << std::endl;
// Step 3: Return 0 to indicate successful execution
return 0;
}