• 4 Posts
  • 125 Comments
Joined 2 years ago
cake
Cake day: June 8th, 2023

help-circle
















  • Anissem@lemmy.mltoAsklemmy@lemmy.mlI have exam tomorrow. Any tips?
    link
    fedilink
    arrow-up
    12
    arrow-down
    2
    ·
    1 month ago

    #include <iostream> using namespace std;

    int main() { char procrastinated;

    cout << "Did you procrastinate? (y/n): ";
    cin >> procrastinated;
    
    if (procrastinated == 'y' || procrastinated == 'Y') {
        cout << "You procrastinated! Remember, study earlier next time to avoid the stress!" << endl;
    } else {
        cout << "Good job staying on track! Keep it up!" << endl;
    }
    
    return 0;
    

    }