Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- int n,m,i,h,g,countc=0, countpc=0;
- scanf("%d %d", &n, &m);
- for(i=n; i<=m; i++)
- {
- g=i;
- while(g!=0)
- {
- g=g/10;
- countc++;
- }
- h=i;
- while(h>0)
- {
- if((h%10)%2==0)
- {countpc++;
- h=h/10;}
- }
- if(countc==countpc)
- {
- break;
- }
- else
- printf("NSN");
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement