#include <iostream>
#include <string>
using namespace std;

int main() {

    string x;
    cout << "Guten Tag  " << endl;

    getline(cin, x);
    cout << x << endl;

    cout << "Bis Morgen Kath " << x.size()
         << " Kath Ledoux" << endl;

    int nana = 0;
    char lala = ' ';

    for (int i = 0; i < x.size(); i++)
        if (x[i] == lala)
            nana++;

    cout << "Auf Wiedersehen" << nana << " Bis Morgen";
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: