17 lines
325 B
C++
17 lines
325 B
C++
#include <iostream>
|
|
using std::cin;
|
|
using std::cout;
|
|
using std::endl;
|
|
|
|
int main() {
|
|
std::string s;
|
|
|
|
while (cin >> s, s.length() > 5) {
|
|
cout << s << " is longer than 5\n";
|
|
}
|
|
cout << s << " is too short\n";
|
|
|
|
for (int i = 0, j = 0; i != 5; ++i, ++j) {
|
|
cout << i << ", " << j << endl;
|
|
}
|
|
}
|