Advertisement
Guest User

Untitled

a guest
Oct 20th, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. #include <stdio.h>
  2. #include <string.h>
  3. #include <math.h>
  4.  
  5. int main(int argc, char* argv[]){
  6. for(int i=1;i<argc-1;++i) {
  7. printf("%d ", ceil((strlen(argv[i])-2)/2.0));
  8. }
  9. if (argc>1){
  10. printf("%d", ceil((strlen(argv[argc-1])-2)/2.0));
  11. }
  12. return 0;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement