Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include stdio.h
- #include stdlib.h
- #include math.h
- int main()
- {
- int N, i, j, k, l;
- freopen("input.txt", "r", stdin);
- freopen("output.txt", "w", stdout);
- scanf("%d", &N);
- for(i = 1; i <= N; i++)
- {
- l=0;
- scanf("%d", &j);
- j = j%10;
- if (j > l)
- j = l;
- k++;
- printf("%d", k);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment