Advertisement
35657

Untitled

Apr 13th, 2024
868
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.28 KB | None | 0 0
  1. #define _CRT_SECURE_NO_WARNINGS
  2.  
  3. #include <iostream>
  4.  
  5. using namespace std;
  6.  
  7. int main() {
  8.     setlocale(LC_ALL, "ru");
  9.  
  10.     char line[40];
  11.     gets_s(line);
  12.     int num = strlen(line) + 1;
  13.     cout << "Занято " << num << ", свободно " << 40 - num << endl;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement