Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- char x; int sum=0;
- while((x=getchar())!='!')sum+=x;
- printf("%d",sum);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement