MrYadro

Untitled

Sep 28th, 2012
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.31 KB | None | 0 0
  1. #include stdio.h
  2. #include stdlib.h
  3. #include math.h
  4.  
  5. int main()
  6. {
  7. int N, i, j, k, l;
  8.  
  9.  
  10. freopen("input.txt", "r", stdin);
  11. freopen("output.txt", "w", stdout);
  12.  
  13. scanf("%d", &N);
  14.  
  15. for(i = 1; i <= N; i++)
  16. {
  17. l=0;
  18. scanf("%d", &j);
  19. j = j%10;
  20. if (j > l)
  21. j = l;
  22. k++;
  23. printf("%d", k);
  24.  
  25. }
  26.  
  27. return 0;
  28. }
Advertisement
Add Comment
Please, Sign In to add comment