C++ char

#include <iostream>

int main() {
    // Step 1: Declare a char variable named 'myChar'
    char myChar;

    // Step 2: Assign a value to the char variable 'myChar'
    myChar = 'A';

    // Step 3: Display the value of 'myChar' using cout
    std::cout << "The value of myChar is: " << myChar << std::endl;

    // Step 4: Change the value of 'myChar' to 'B'
    myChar = 'B';

    // Step 5: Display the updated value of 'myChar'
    std::cout << "Now the value of myChar is: " << myChar << std::endl;

    // Step 6: Return 0 to indicate successful program execution
    return 0;
}