Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
500 B
4
Indexable
Never
#include <iostream>
using namespace std;

void init();

int main()
{
    init();

    return 0;
}

void init()
{
    char letter = 0;
    double id = 0;

    cout << "Enter name and press '.' at the end" << endl;
    while (letter != '.')
    {
        cin >> letter;
        if (letter < 'A' || letter > 'Z')
        {
            cout << "Try again : the details you entered are not correct" << endl;
            break;
        }
        else
        {
            cin >> letter;
        }

    }
}