Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main() {
- setlocale(LC_ALL, "ru");
- char line[100];
- gets_s(line);
- int num = strlen(line);
- cout << "Занято: " << num + 1 << ". Свободно: " << 100 - num - 1 << endl; // с учетом символа конца строки
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement