cpp_prac/demos/comma.cpp
2025-01-11 17:45:38 +01:00

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;
}
}