Varasku

Długość znaku liczenie

Apr 10th, 2019
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. #include <iostream>
  2. #include <string.h>
  3. #define n 30
  4. using namespace std;
  5.  
  6. int main(int argc, char** argv) {
  7.  
  8.  
  9.  
  10. char s[n];
  11.  
  12.  
  13. printf("Podaj swoje imie:");
  14.  
  15.  
  16.  
  17. gets(s);
  18. printf("Twoje imie sklada sie z %d znakow\n", strlen(s));
  19.  
  20.  
  21.  
  22.  
  23.  
  24. return 0;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment