Untitled
unknown
plain_text
3 years ago
500 B
7
Indexable
#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; } } }
Editor is loading...