c++ cin

#include <iostream>

int main() {
    // Declare variables to store user input
    int integerValue;
    double doubleValue;
    char charValue;

    // Prompt the user for an integer input
    std::cout << "Enter an integer: ";
    std::cin >> integerValue;

    // Prompt the user for a double input
    std::cout << "Enter a double: ";
    std::cin >> doubleValue;

    // Prompt the user for a character input
    std::cout << "Enter a character: ";
    std::cin >> charValue;

    // Display the entered values
    std::cout << "Integer: " << integerValue << std::endl;
    std::cout << "Double: " << doubleValue << std::endl;
    std::cout << "Character: " << charValue << std::endl;

    return 0;
}