Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- /* count Chars in input; v2 */
- main()
- {
- double nc;
- nc = 0;
- for (nc = 0; getchar() != EOF; ++nc)
- ;
- printf("%.0f\n", nc);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement