Advertisement
Guest User

Untitled

a guest
Nov 9th, 2018
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.16 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. /* count Chars in input; v2 */
  4. main()
  5. {
  6.     double nc;
  7.    
  8.     nc = 0;
  9.     for (nc = 0; getchar() != EOF; ++nc)
  10.         ;
  11.     printf("%.0f\n", nc);
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement