the amount of input is unknown code example Example: the amount of input is unknown while (cin >> x) { // code }