Friday, September 1, 2023

How are you feeling today?

 #include <iostream>

#include <string>

using namespace std;

int main() {

    string mood;

    cout << "How are you feeling today? ";

    cin >> mood;

    if (mood == "happy") {

        cout << "That's great to hear! Keep spreading the positivity!" << endl;

    } else if (mood == "sad") {

        cout << "I'm sorry to hear that. Things will get better!" << endl;

    } else if (mood == "angry") {

        cout << "Take a deep breath and try to calm down. It's okay to feel this way sometimes." << endl;

    } else if (mood == "excited") {

        cout << "Awesome! What's got you so excited?" << endl;

    } else {

        cout << "I'm not sure how to respond to that mood, but I hope your day gets better!" << endl;

    }

    return 0;

}

No comments:

Post a Comment

NaCl.xyz Generator with Interactive 3D Visualization

NaCl.xyz Generator with Interactive 3D Visualization NaCl.xyz Generator with Interactive 3D Visualization ...