Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- void main()
- {
- int i,n,count=0;
- scanf("%d",&n);
- while(n!=0)
- {
- if (n%10==7)
- {
- count++;
- }
- n/=10;
- }
- printf("%d\n",count);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement